forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalpha.xml
More file actions
executable file
·54 lines (39 loc) · 888 Bytes
/
Copy pathalpha.xml
File metadata and controls
executable file
·54 lines (39 loc) · 888 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
54
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>alpha()</name>
<category>Color</category>
<subcategory>Creating & Reading</subcategory>
<usage>Web & Application</usage>
<example>
<image>alpha_.gif</image>
<code><![CDATA[
noStroke();
color c = color(0, 126, 255, 102);
fill(c);
rect(15, 15, 35, 70);
float value = alpha(c); //Sets "value" to "102"
fill(value);
rect(50, 15, 35, 70);
]]></code>
</example>
<description><![CDATA[Extracts the alpha value from a color.]]></description>
<syntax><![CDATA[
alpha(<kbd>color</kbd>)
]]></syntax>
<parameter>
<label>color</label>
<description><![CDATA[any value of the color datatype]]></description>
</parameter>
<returns>float</returns>
<related>
green()
red()
blue()
hue()
saturation()
brightness()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>