forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport.xml
More file actions
57 lines (41 loc) · 1.23 KB
/
import.xml
File metadata and controls
57 lines (41 loc) · 1.23 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>import</name>
<category>Structure</category>
<subcategory></subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
import processing.pdf.*;
void setup() {
size(1024, 768, PDF);
}
void draw() {
line(0, 0, width, height);
line(0, height, width, 0);
}
]]></code>
</example>
<description><![CDATA[
The keyword <b>import</b> is used to load a library into a Processing sketch.
A library is one or more classes that are grouped together to extend the capabilities of Processing.
The <b>*</b> character is often used at the end of the import line (see the code example above)
to load all of the related classes at once, without having to reference them individually.<br />
<br />
The import statement will be created for you by selecting a library from the "Import Library..."
item in the Sketch menu.
]]></description>
<syntax>
import <c>libraryName</c>
</syntax>
<parameter>
<label>libraryName</label>
<description><![CDATA[the name of the library to load (e.g. "processing.pdf.*")]]></description>
</parameter>
<returns></returns>
<related></related>
<availability>1.0</availability>
<type>Keyword</type>
<partof>PDE</partof>
</root>