Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rectangle & Ellipse fill color not applied unless changed first. #6

Open
kgrycuk opened this issue Dec 7, 2021 · 0 comments
Open

Comments

@kgrycuk
Copy link

kgrycuk commented Dec 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant