Lilibouh Posted April 8, 2020 Share Posted April 8, 2020 Hello I would like to change the color of the "+". Is it possible in this demo ? thanks See the Pen mxOXQQ by osublake (@osublake) on CodePen Link to comment Share on other sites More sharing options...
Shrug ¯\_(ツ)_/¯ Posted April 8, 2020 Share Posted April 8, 2020 Hey @Lilibouh welcome to the GSAP forums. That's not really a GSAP question and instead related to Canvas in general, see the below link about strokeStyle. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle That should assist you in declaring the color of your choice. 2 Link to comment Share on other sites More sharing options...
ZachSaucier Posted April 8, 2020 Share Posted April 8, 2020 In case it's not clear from Shrug's answer, in this case you should change the strokeStyle of canvas2Context before the .stroke() command in line 11. You might as well upgrade that script to GSAP 3 while you're working on it, @Lilibouh It has a smaller file size, a sleeker API, and a bunch of new features! Link to comment Share on other sites More sharing options...
Lilibouh Posted April 10, 2020 Author Share Posted April 10, 2020 Top thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now