mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
62 lines
958 B
XML
62 lines
958 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>void</name>
|
|
|
|
<category>Structure</category>
|
|
|
|
<subcategory></subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
void setup() {
|
|
size(200, 200);
|
|
}
|
|
|
|
void loop() {
|
|
line(10, 100, 190, 100);
|
|
}
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Keyword used indicate a function returns no value. Each function must either return a value of a specific datatype or use the keyword <b>void </b> to specify the function returns nothing.
|
|
</description>
|
|
|
|
<syntax>
|
|
void <c>function</c> {
|
|
<c>statements</c>
|
|
}
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>function</label>
|
|
<description>any function that is being defined or implemented</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>statements</label>
|
|
<description>any valid statements</description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related></related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Keyword</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|