Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
bigbeats01

Tweening Lines Canvas

Recommended Posts

I'm brand new to javascript animation.  Can I use this library to tween the drawing of lines (lineTo) on the canvas element?  Is there another library out there better suited for that or should I just use plain javascript and requestAnimationFrame ?

Link to post
Share on other sites

Hi and welcome to the forums.

 

I'm not a canvas expert but one choice could be use an onUpdate call to update the pen position so to speak, but I can't remember such experiment here in the forums at least.

 

What I can recommend you is to take a look at the kinetic plugin that of course works with the KineticJS framework. I've seen very amazing stuff done with it and combine with GSAP I'm pretty sure you can get very good results.

 

In this posts Carl gives a little more info on how the plugin works and you can see a couple of very good samples using it:

 

http://forums.greensock.com/topic/7783-switching-over-from-kineticjs-cannot-make-it-work-on-canvas/#entry29664

 

http://forums.greensock.com/topic/7963-ticker-and-performance-on-canvas/#entry30498

 

Hope this helps,

Cheers,

Rodrigo.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×