Transition transitionX;
void setup () {
size(600, 600);
transitionX = new Transition(50, width - 50, 60, EASE_IN_OUT);
}
void draw () {
if (!transitionX.hasNext()) {
noLoop();
return;
}
background(-1);
float positionX = transitionX.next();
ellipse(positionX, height * 0.5, 50, 50);
}
-
Notifications
You must be signed in to change notification settings - Fork 0
progfay/p5-transition
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Transition Iterator with p5
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published