mirror of
https://github.com/processing/processing4.git
synced 2026-02-09 16:49:21 +01:00
21 lines
278 B
Plaintext
21 lines
278 B
Plaintext
|
|
class Particle {
|
|
PVector location;
|
|
|
|
Particle() {
|
|
location = new PVector();
|
|
}
|
|
|
|
void setLocation(float x, float y) {
|
|
location.x = x;
|
|
location.y = y;
|
|
}
|
|
|
|
void display() {
|
|
fill(random(255));
|
|
ellipse(location.x,location.y,16,16);
|
|
}
|
|
|
|
|
|
}
|