forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharc.xml
More file actions
executable file
·78 lines (53 loc) · 1.86 KB
/
Copy patharc.xml
File metadata and controls
executable file
·78 lines (53 loc) · 1.86 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>arc()</name>
<category>Shape</category>
<subcategory>2D Primitives</subcategory>
<usage>Web & Application</usage>
<example>
<image>arc_.gif</image>
<code><![CDATA[
arc(50, 55, 50, 50, 0, PI/2);
noFill();
arc(50, 55, 60, 60, PI/2, PI);
arc(50, 55, 70, 70, PI, TWO_PI-PI/2);
arc(50, 55, 80, 80, TWO_PI-PI/2, TWO_PI);
]]></code>
</example>
<description><![CDATA[Draws an arc in the display window. Arcs are drawn along the outer edge of an ellipse defined by the <b>x</b>, <b>y</b>, <b>width</b> and <b>height</b> parameters. The origin or the arc's ellipse may be changed with the <b>ellipseMode()</b> function. The <b>start</b> and <b>stop</b> parameters specify the angles at which to draw the arc. ]]></description>
<syntax><![CDATA[
arc(<kbd>x</kbd>, <kbd>y</kbd>, <kbd>width</kbd>, <kbd>height</kbd>, <kbd>start</kbd>, <kbd>stop</kbd>)
]]></syntax>
<parameter>
<label>x</label>
<description><![CDATA[int or float: x-coordinate of the arc's ellipse]]></description>
</parameter>
<parameter>
<label>y</label>
<description><![CDATA[int or float: y-coordinate of the arc's ellipse]]></description>
</parameter>
<parameter>
<label>width</label>
<description><![CDATA[int or float: width of the arc's ellipse]]></description>
</parameter>
<parameter>
<label>height</label>
<description><![CDATA[int or float: height of the arc's ellipse]]></description>
</parameter>
<parameter>
<label>start</label>
<description><![CDATA[int or float: angle to start the arc, specified in radians]]></description>
</parameter>
<parameter>
<label>stop</label>
<description><![CDATA[int or float: angle to stop the arc, specified in radians]]></description>
</parameter>
<returns>None</returns>
<related>
ellipseMode()
ellipse()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>