Stroke on select sides of shape

Hello,

Is there any way to define stroke for specific segments/sides of a shape? For example, given a rectangle, only change the stroke color for 3 of the sides and leave the 4th either undefined or a different color.

The Shape.stroke property applies to the whole stroke that is drawn for a particular Shape. (The same applies to the Shape.fill property for filled areas of a shape.)

If you want to draw two colors, you’ll need to use two Shapes.

You might be interested in these two samples:
Multi-color Resizable Rectangle
Multi-color Links

Thanks for the reference. Is there a source page for the Rectangle example you linked? I couldn’t find it in the GitHub page.

As with almost all of our samples, the complete source code is in the page itself.