-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathsetLocation.xml
More file actions
60 lines (45 loc) · 1.22 KB
/
Copy pathsetLocation.xml
File metadata and controls
60 lines (45 loc) · 1.22 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>setLocation()</name>
<category>Structure</category>
<subcategory></subcategory>
<type>function</type>
<example>
<image></image>
<code><![CDATA[
void setup() {
size(200, 200);
surface.setTitle("Hello World!");
surface.setResizable(true);
surface.setLocation(100, 100);
}
void draw() {
background(204);
line(0, 0, width, height);
line(width, 0, 0, height);
}
]]></code>
</example>
<description><![CDATA[
The <b>setLocation()</b> function defines the position of the Processing sketch in relation to the upper-left corner of the computer screen.
<br /><br />
There are more features of PSurface documented in the <a href="http://processing.github.io/processing-javadocs/core/processing/core/PSurfaceNone.html">Processing JavaDoc.</a>
]]></description>
<syntax>
surface.setLocation(x, y)
</syntax>
<parameter>
<label>x</label>
<description><![CDATA[int: x-coordinate of the surface]]></description>
</parameter>
<parameter>
<label>y</label>
<description><![CDATA[int: y-coordinate of the surface]]></description>
</parameter>
<returns>void</returns>
<related>
</related>
<availability>3.0</availability>
<type>Function</type>
<partof>PDE</partof>
</root>