Two color link

Does anyone have a snippet of code on how to draw a 2 color link ( the color change at the middle point)?

Thanks!

Wagner

Demo1 has a TwoColorLink example class. It also demonstrates some other features you probably don’t care about, and can strip out.
An alternative way of getting that is to use the same technique as GradientColorLink, which is a new example class in version 2.4. Instead of a smooth gradient you could specify one that changes abruptly in the middle.

Thanks a bunch!

Best Regards,

Wagner