forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathendShape.xml
More file actions
executable file
·62 lines (39 loc) · 1.16 KB
/
Copy pathendShape.xml
File metadata and controls
executable file
·62 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>endShape()</name>
<category>Shape</category>
<subcategory>Vertex</subcategory>
<usage>Web & Application</usage>
<example>
<image>endShape_.gif</image>
<code><![CDATA[
noFill();
beginShape();
vertex(20, 20);
vertex(45, 20);
vertex(45, 80);
endShape(CLOSE);
beginShape();
vertex(50, 20);
vertex(75, 20);
vertex(75, 80);
endShape();
]]></code>
</example>
<description><![CDATA[The <b>endShape()</b> function is the companion to <b>beginShape()</b> and may only be called after <b>beginShape()</b>. When <b>endshape()</b> is called, all of image data defined since the previous call to <b>beginShape()</b> is written into the image buffer. The constant CLOSE as the value for the MODE parameter to close the shape (to connect the beginning and the end). ]]></description>
<syntax><![CDATA[
endShape()
endShape(<kbd>MODE</kbd>)
]]></syntax>
<parameter>
<label>MODE</label>
<description><![CDATA[Use CLOSE to close the shape]]></description>
</parameter>
<returns>None</returns>
<related>
beginShape()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>