OlivierD Posted April 8, 2021 Share Posted April 8, 2021 Hello ! I'm new to gsap and canvas and I wanted to say that I have found great explanations and usefull links through the forum. The reason of my post is to ask if what I have done is the good way to go, if there is things that I can do better or details that show that I misunderstood something ... Thanks ! See the Pen wvgrGJB?editors=0010 by Bocfil (@Bocfil) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted April 8, 2021 Share Posted April 8, 2021 Hi @OlivierD Welcome to the forum. I'm not an expert on optimal canvas performance. @OSUblake is our wizard for that type of work. We do have an excellent thread which may be of interest to you. Happy tweening and welcome aboard. 2 Link to comment Share on other sites More sharing options...
OSUblake Posted April 8, 2021 Share Posted April 8, 2021 Looks good, although you don't need those random functions as gsap now has some as of version 3. https://greensock.com/docs/v3/GSAP/UtilityMethods/random() And you don't need to do ctx.closePath(). That's like the z command on an SVG path. It just connects the last point to the start point. 3 Link to comment Share on other sites More sharing options...
OlivierD Posted April 8, 2021 Author Share Posted April 8, 2021 Thanks for your answers, greatly appreciated ! 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