Skip to content

Commit 7edf649

Browse files
committed
Fix Rotate Push Pop example
1 parent 3f4be85 commit 7edf649

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

assets/examples_js/Basics/transform/Rotate_Push_Pop/Rotate_Push_Pop.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,14 @@ function setup() {
1010
function draw() {
1111
background(0, 0, 26);
1212
lights();
13-
1413
for (let i = 0; i < num; i++) {
1514
let gray = map(i, 0, num - 1, 0, 255);
16-
1715
push();
18-
1916
fill(gray);
2017
rotateY(a + offset * i);
2118
rotateX(a / 2 + offset * i);
22-
box(200);
23-
19+
box(100);
2420
pop();
2521
}
26-
2722
a += 0.01;
2823
}

examples/rotate-push-pop.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,15 @@ <h1>Rotate Push Pop</h1>
8080
function draw() {
8181
background(0, 0, 26);
8282
lights();
83-
8483
for (let i = 0; i < num; i++) {
8584
let gray = map(i, 0, num - 1, 0, 255);
86-
8785
push();
88-
8986
fill(gray);
9087
rotateY(a + offset * i);
9188
rotateX(a / 2 + offset * i);
92-
box(200);
93-
89+
box(100);
9490
pop();
9591
}
96-
9792
a += 0.01;
9893
}<\/script></body></html>`);doc.close();})();</script>
9994
<div class="code-block">

0 commit comments

Comments
 (0)