mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
61 lines
823 B
XML
61 lines
823 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>millis()</name>
|
|
|
|
<category>Input/Output</category>
|
|
|
|
<subcategory>Time & Date</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image>millis_.jar</image>
|
|
<code>
|
|
void loop() {
|
|
float m = millis();
|
|
fill(m % 255);
|
|
rect(25, 25, 50, 50);
|
|
}
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Returns the number of milliseconds (thousandths of a second) since starting an applet. This information is often used for timing animation sequences.
|
|
</description>
|
|
|
|
<syntax>
|
|
millis()
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label></label>
|
|
<description></description>
|
|
</parameter>
|
|
|
|
<returns>int</returns>
|
|
|
|
<related>
|
|
millis()
|
|
second()
|
|
minute()
|
|
hour()
|
|
day()
|
|
month()
|
|
year()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|