forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhue.xml
More file actions
executable file
·53 lines (39 loc) · 886 Bytes
/
Copy pathhue.xml
File metadata and controls
executable file
·53 lines (39 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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><![CDATA[
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><![CDATA[Extracts the hue value from a color.]]></description>
<syntax><![CDATA[
hue(<kbd>color</kbd>)
]]></syntax>
<parameter>
<label>color</label>
<description><![CDATA[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>
</root>