Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ani.from doesn't work for delay > 0 #13

Open
mroglic opened this issue Oct 28, 2015 · 0 comments
Open

Ani.from doesn't work for delay > 0 #13

mroglic opened this issue Oct 28, 2015 · 0 comments

Comments

@mroglic
Copy link

mroglic commented Oct 28, 2015

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant