spainter
spainter copied to clipboard
Rectangle & Ellipse fill color not applied unless changed first.
Steps to recreate.
- Load up js package, regular config.
- Click on rectangle or ellipse tool.
- Begin drawing
You will see that the default fill color is blue (#0000FF), but it is filling in the shapes with white (#ffffff).
I was able to fix by adding
tool.onActivate = function(e) { self.ctx.fillStyle = self.instruments.colorFill.value.value; };
to self.tools.rect
and self.tools.ellipse
.