Animate ellipse along vertext points
in
Programming Questions
•
1 year ago
Trying to animate a circle to move between points of a vertex, is that possible?
- //PImage m;
- int[] x = {
- 159, 204, 253, 254, 248, 252, 251, 335, 302
- };
- int[] y = {
- 43, 105, 272, 322, 344, 358, 384, 411, 508
- };
- void setup() {
- size(559, 656);
- // m = loadImage("Dublin-Map-Vector.jpg");
- }
- void draw() {
- // image(m, 0, 0);
- for (int i = 0; i < x.length; i++) {
- ellipse(x[i], y[i], 20, 20);
- }
- endShape();
- }
1