mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
55 lines
903 B
XML
55 lines
903 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>width</name>
|
|
|
|
<category>Environment</category>
|
|
|
|
<subcategory></subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image>width.gif</image>
|
|
<code>
|
|
noStroke();
|
|
background(0);
|
|
rect(0, 40, width, 20);
|
|
rect(0, 60, width/2, 20);
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
System variable which stores the width of the display window. This value is set by the first parameter of the <b>size()</b> function. For example, the function call <b>size(320, 240)</b> sets the <b>width</b> variable to the value 320. The value of <b>width</b> is zero until <b>size()</b> is called.
|
|
|
|
</description>
|
|
|
|
<syntax>
|
|
width
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label></label>
|
|
<description></description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related>
|
|
height
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>System variable</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|