mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
62 lines
865 B
XML
62 lines
865 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>hue()</name>
|
|
|
|
<category>Color</category>
|
|
|
|
<subcategory>Creating & Reading</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image>hue_.gif</image>
|
|
<code>
|
|
noStroke();
|
|
colorMode(HSB, 255);
|
|
color c = color(0, 126, 255);
|
|
fill(c);
|
|
rect(15, 20, 35, 60);
|
|
float value = hue(c); // Sets "value" to "0"
|
|
fill(value);
|
|
rect(50, 20, 35, 60);
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Extracts the hue value from a color.
|
|
</description>
|
|
|
|
<syntax>
|
|
hue(<c>color</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>color</label>
|
|
<description>any value of the color datatype</description>
|
|
</parameter>
|
|
|
|
<returns>float</returns>
|
|
|
|
<related>
|
|
red()
|
|
green()
|
|
blue()
|
|
saturation()
|
|
brightness()
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
<level>Extended</level>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|