Files
processing4/mobile/web/reference/API/width.xml
2005-01-27 06:48:42 +00:00

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 &amp; 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>