forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox.xml
More file actions
executable file
·77 lines (52 loc) · 1.39 KB
/
Copy pathbox.xml
File metadata and controls
executable file
·77 lines (52 loc) · 1.39 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>box()</name>
<category>Shape</category>
<subcategory>3D Primitives</subcategory>
<usage>Web & Application</usage>
<example>
<image>box_.gif</image>
<code><![CDATA[
translate(58, 48, 0);
rotateY(0.5);
box(40);
]]></code>
</example>
<example>
<image>box_2.gif</image>
<code><![CDATA[
translate(58, 48, 0);
rotateY(0.5);
box(40, 20, 50);
]]></code>
</example>
<description><![CDATA[A box is an extruded rectangle. A box with equal dimension on all sides is a cube.]]></description>
<syntax><![CDATA[
box(<kbd>size</kbd>);
box(<kbd>width</kbd>, <kbd>height</kbd>, <kbd>depth</kbd>);
]]></syntax>
<parameter>
<label>size</label>
<description><![CDATA[int or float: dimension of the box in all dimensions, creates a cube]]></description>
</parameter>
<parameter>
<label>width</label>
<description><![CDATA[int or float: dimension of the box in the x-dimension]]></description>
</parameter>
<parameter>
<label>height</label>
<description><![CDATA[int or float: dimension of the box in the y-dimension]]></description>
</parameter>
<parameter>
<label>depth</label>
<description><![CDATA[int or float: dimension of the box in the z-dimension]]></description>
</parameter>
<returns>None</returns>
<related>
sphere()
</related>
<level>Extended</level>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>