File tree Expand file tree Collapse file tree 1 file changed +15
-18
lines changed
src/content/reference/en/p5 Expand file tree Collapse file tree 1 file changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -56,40 +56,37 @@ description: >
56
56
57
57
again:</p>
58
58
59
- <code>
59
+ <pre>< code>beginShape();
60
60
61
- beginShape();
61
+ // Set the vertex normal.
62
62
63
+ normal(-0.4, -0.4, 0.8);
63
64
64
- <p> // Set the vertex normal .
65
+ // Add a vertex.
65
66
66
- normal(-0.4 , -0.4 , 0.8);</p>
67
+ vertex(-30 , -30 , 0);
67
68
68
- <p> // Add a vertex.
69
+ // Set the vertex normal .
69
70
70
- vertex(-30, -30, 0);</p>
71
+ normal(0, 0, 1);
71
72
72
- <p>// Set the vertex normal.
73
-
74
- normal(0, 0, 1);</p>
75
-
76
- <p>// Add vertices.
73
+ // Add vertices.
77
74
78
75
vertex(30, -30, 0);
79
76
80
- vertex(30, 30, 0);</p>
77
+ vertex(30, 30, 0);
81
78
82
- <p> // Set the vertex normal.
79
+ // Set the vertex normal.
83
80
84
- normal(0.4, -0.4, 0.8);</p>
81
+ normal(0.4, -0.4, 0.8);
85
82
86
- <p> // Add a vertex.
83
+ // Add a vertex.
87
84
88
- vertex(-30, 30, 0);</p>
85
+ vertex(-30, 30, 0);
89
86
90
- <p>endShape();
87
+ endShape();
88
+ </code></pre>
91
89
92
- </p></code>
93
90
line : 2066
94
91
isConstructor : false
95
92
itemtype : method
You can’t perform that action at this time.
0 commit comments