Skip to content

Commit 7498d4b

Browse files
committed
Merge branch 'master' of https://github.com/SFPC/recoded
2 parents 45d2651 + f350839 commit 7498d4b

24 files changed

+129
-32
lines changed
Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
// code goes here!
1+
// sine wave bacon
22

3-
//if you want to show a parameter's value, which highlights when it changes you need to enclose it's name in double square brackets.
4-
// for a parameter named myParam you shoudl put [[myParam]] in the pseudo code below.
3+
ofRotateZ(-45);
4+
ofTranslate(- 6 * (bacon.width + bacon.height),0);
5+
6+
for(int i = 0; i < 12; i ++){
7+
for(int j = 0; j < 6; j ++){
8+
float offset = 0;
9+
float move;
10+
if(j % 2 == 1) offset = bacon.width/2;
11+
12+
ofPushMatrix();
13+
ofTranslate(i * (bacon.width + bacon.height) + offset + pos,
14+
j * (bacon.height * 2) + 7 * sin(ofGetElapsedTimef()+ i*0.1));
15+
bacon.draw([[sineAmp]]);
16+
ofPopMatrix();
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)