Ani icon indicating copy to clipboard operation
Ani copied to clipboard

Ani.from doesn't work for delay > 0

Open mroglic opened this issue 9 years ago • 0 comments

I am not sure if I am missing something, but here is the simple example when Ani.from doesn't work at all when I set delay greater than 0:

import de.looksgood.ani.*;

float x = 10;
float y = 10;

void setup() {
    size(300, 300);

    Ani.init(this); 
}

void draw() {
    background(255);    
    fill(#ff0000);
    ellipse(x, y, 20, 20);
}

void mouseReleased() {
    float delay = 1.0;      // Ani.from doesn't work for delay > 0
    x = 10;
    Ani.from(this, 2.0, delay, "x", mouseX);
}

mroglic avatar Oct 28 '15 12:10 mroglic