Add inverse repeats

feature/coffeescript
Sven Slootweg 10 years ago
parent b379187f4f
commit 3d35f95c15

@ -729,6 +729,10 @@
if (current_frame >= this.start_frame + this.duration) {
if (this.infinite) {
this.start_frame = current_frame;
if (this.invert_repeat) {
this.start = this.start + this.change;
this.change = -this.change;
}
return this.value = this.start;
} else if (this.next != null) {
return this.goToNext();

@ -117,6 +117,9 @@ class Ease
if current_frame >= @start_frame + @duration
if @infinite
@start_frame = current_frame
if @invert_repeat
@start = @start + @change
@change = -@change
@value = @start
else if @next?
@goToNext()

Loading…
Cancel
Save