Skip to content
Permalink
Browse files

Solved timing issue with bezier

  • Loading branch information
Koen Bok
Koen Bok committed Mar 20, 2013
1 parent 2f345ec commit 78c16ef1a674dcb61a4c22d96e70a83c668ad1eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/curves/bezier.coffee
@@ -66,7 +66,7 @@ BezierCurve = (a, b, c, d, time, fps) ->
curve = new UnitBezier a, b, c, d

values = []
steps = (time / 1000) * fps
steps = ((time / 1000) * fps) - 1

if steps > 3000
throw Error "Bezier: too many values"
@@ -80,6 +80,7 @@ defaults = {}

defaults.Linear = (time, fps) ->
BezierCurve 0, 0, 1, 1, time, fps
# return [0, 100]
defaults.Ease = (time, fps) ->
BezierCurve .25, .1, .25, 1, time, fps
defaults.EaseIn = (time, fps) ->

0 comments on commit 78c16ef

Please sign in to comment.
You can’t perform that action at this time.