Skip to content

Commit c3d4f39

Browse files
committed
Fixed inline code issues in normal()
1 parent 498bc65 commit c3d4f39

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/content/reference/en/p5/normal.mdx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,40 +56,37 @@ description: >
5656
5757
again:</p>
5858
59-
<code>
59+
<pre><code>beginShape();
6060
61-
beginShape();
61+
// Set the vertex normal.
6262
63+
normal(-0.4, -0.4, 0.8);
6364
64-
<p>// Set the vertex normal.
65+
// Add a vertex.
6566
66-
normal(-0.4, -0.4, 0.8);</p>
67+
vertex(-30, -30, 0);
6768
68-
<p>// Add a vertex.
69+
// Set the vertex normal.
6970
70-
vertex(-30, -30, 0);</p>
71+
normal(0, 0, 1);
7172
72-
<p>// Set the vertex normal.
73-
74-
normal(0, 0, 1);</p>
75-
76-
<p>// Add vertices.
73+
// Add vertices.
7774
7875
vertex(30, -30, 0);
7976
80-
vertex(30, 30, 0);</p>
77+
vertex(30, 30, 0);
8178
82-
<p>// Set the vertex normal.
79+
// Set the vertex normal.
8380
84-
normal(0.4, -0.4, 0.8);</p>
81+
normal(0.4, -0.4, 0.8);
8582
86-
<p>// Add a vertex.
83+
// Add a vertex.
8784
88-
vertex(-30, 30, 0);</p>
85+
vertex(-30, 30, 0);
8986
90-
<p>endShape();
87+
endShape();
88+
</code></pre>
9189
92-
</p></code>
9390
line: 2066
9491
isConstructor: false
9592
itemtype: method

0 commit comments

Comments
 (0)