-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbectonLED.pde
More file actions
41 lines (33 loc) · 1.04 KB
/
Copy pathbectonLED.pde
File metadata and controls
41 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// References:
// CPSC 334 Task 1 group portion, see https://github.com/slongarama/cpsc334-generative-art
// Particle class: https://processing.org/examples/simpleparticlesystem.html
// Smoke: https://www.openprocessing.org/sketch/711218
// ----------------------------------------------------------------------
// SETUP
// ----------------------------------------------------------------------
PImage img;
void setup() {
frameRate(24);
fullScreen();
// Load images
imageMode(CENTER);
img = loadImage("media/child.png");
img.resize(width, height);
// Load rectangle positions for smaller LED displays. Create particle
// system that will show a bouncing "ball" in each small panel
loadRectangles();
ps.addParticles();
// Load text files
textSetup();
}
// ----------------------------------------------------------------------
// DRAW
// ----------------------------------------------------------------------
void draw() {
background(#0A4500);
background(img);
ps.run();
drawSmoke();
drawMovingText();
drawBlockText();
}