Skip to content

Commit bd5e9fe

Browse files
committed
fixing description and describe funciton
1 parent f8c4c83 commit bd5e9fe

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

content/examples/Basics/Color/ColorVariables/liveSketch.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ function runLiveSketch(s) {
2121
//color middle = #CC9900;
2222
//color outside = #993300;
2323

24-
s.describe(
25-
'There are two sets of squares. The first set contains three squares of varying sizes stacked together. The color of the smallest square is orange, the color of the middle square is gold, and the color of the biggest square is brown. On the right of the first set is the second set, which is similar to the first. The only difference here is the color of the squares; the smallest square is gold, the middle square is brown, and the biggest square is orange.'
26-
);
27-
2824
s.push();
2925
s.translate(80, 80);
3026
s.fill(outside);
@@ -46,5 +42,9 @@ function runLiveSketch(s) {
4642
s.pop();
4743

4844
s.noLoop();
45+
46+
s.describe(
47+
'There are two groups of squares. The first group contains three squares of varying sizes one above the other. The color of the smallest square is orange, the color of the middle square is gold, and the color of the biggest square is brown. On the right of the first group is the second set, which is similar to the first. The only difference here is the color of the squares; the smallest square is gold, the middle square is brown, and the biggest square is orange.'
48+
);
4949
};
5050
}

content/examples/Basics/Lights/Directional/liveSketch.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ function runLiveSketch(s) {
33
s.createCanvas(640, 360, s.WEBGL);
44
s.noStroke();
55
s.fill(204);
6+
s.describe(
7+
'there are two dark spheres side by side, the cursor works like a light source, when mouse moves the direction of light changes and reveals some part of spheres.'
8+
);
69
};
710

811
s.draw = () => {
@@ -15,8 +18,6 @@ function runLiveSketch(s) {
1518
s.sphere(80);
1619
s.translate(200, 0, 0);
1720
s.sphere(80);
18-
describe(
19-
'there are two dark spheres side by side, the cursor works like a light source, when mouse moves the direction of light changes and reveals some part of spheres.'
20-
);
21+
2122
};
2223
}

0 commit comments

Comments
 (0)