Method: Transform#start
- Defined in:
- lib/source/redshift/transform.rb
#start(from, to) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/source/redshift/transform.rb', line 84 def start(from,to) `if (!this.m$check(arguments.callee, from, to)) return this` `this.__from__ = from` `this.__to__ = to` `this.__time__ = 0` `this.__transition__ = function(p){ return -(Math.cos(Math.PI * p) - 1) / 2; }` self.start_timer self.fire(:start) return self end |