Reputation: 547
Is there a way I can only color the borders of a rectangle and leave the inside of it white? Similar to this one.
Upvotes: 0
Views: 1698
Reputation: 66
Just use stroke and strokeWidth instead of fill.
See http://fabricjs.com/fabric-intro-part-1/#objects or the documentation for more information.
Upvotes: 4