https://github.com/progfay/p5-transition
Transition Iterator with p5
https://github.com/progfay/p5-transition
animation p5 processing transition
Last synced: 9 months ago
JSON representation
Transition Iterator with p5
- Host: GitHub
- URL: https://github.com/progfay/p5-transition
- Owner: progfay
- Created: 2019-09-22T14:42:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-08T15:51:14.000Z (about 6 years ago)
- Last Synced: 2025-01-30T20:16:05.834Z (11 months ago)
- Topics: animation, p5, processing, transition
- Language: Processing
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# p5-transition
```java
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);
}
```