SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2004
    Location
    NY, USA
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bezier Curves in Javascript?

    I was just wondering if anyone has heard of a method for implementing bezier curves in Javascript, mathematically, for tasks like defining animation paths or animation speed, etc. I've done some googling, and can't find anything online general enough that I could come up with the code myself. This would be useful for creating unique animation paths and so forth. I know there's no way to do this graphically (a la Photoshop, Illustrator, or GoLive) but even entering points numerically would still be useful. I suspect that a production solution would involve creating a 2d array of points (x and y coords) and then dumping some large number of points along the curve into the array, for the sake of speed, but still...

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not much more complicated than implementing the math of a bezier curve

    http://www.13thparallel.org/?issue=2...=bezier_curves
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member
    Join Date
    Mar 2004
    Location
    NY, USA
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by beetle
    Not much more complicated than implementing the math of a bezier curve

    http://www.13thparallel.org/?issue=2...=bezier_curves
    Thank you much for the link. I'd been trying to find a suitable reference site online to no avail for months. (I guess I need to work on my google skills..)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •