spainter icon indicating copy to clipboard operation
spainter copied to clipboard

Rectangle & Ellipse fill color not applied unless changed first.

Open kgrycuk opened this issue 3 years ago • 0 comments

Steps to recreate.

  1. Load up js package, regular config.
  2. Click on rectangle or ellipse tool.
  3. 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.

kgrycuk avatar Dec 07 '21 16:12 kgrycuk