mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
24 lines
257 B
Plaintext
24 lines
257 B
Plaintext
/**
|
|
* WigglePShape.
|
|
*
|
|
* How to move the individual vertices of a PShape
|
|
*/
|
|
|
|
|
|
// A "Wiggler" object
|
|
Wiggler w;
|
|
|
|
void setup() {
|
|
size(640, 360, P2D);
|
|
smooth();
|
|
w = new Wiggler();
|
|
}
|
|
|
|
void draw() {
|
|
background(255);
|
|
w.display();
|
|
w.wiggle();
|
|
}
|
|
|
|
|