forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblendColor.xml
More file actions
executable file
·63 lines (47 loc) · 1.43 KB
/
Copy pathblendColor.xml
File metadata and controls
executable file
·63 lines (47 loc) · 1.43 KB
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
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>blendColor()</name>
<category>Color</category>
<subcategory>Creating & Reading</subcategory>
<usage>Web & Application</usage>
<example>
<image>blend_color.gif</image>
<code><![CDATA[
color orange = color(204, 102, 0);
color blue = color(0, 102, 153);
color orangeblueadd = blendColor(orange, blue, ADD);
background(51);
noStroke();
fill(orange);
rect(14, 20, 20, 60);
fill(orangeblueadd);
rect(40, 20, 20, 60);
fill(blue);
rect(66, 20, 20, 60);
]]></code>
</example>
<description><![CDATA[Blends two color values together based on the blending mode given as the <b>MODE</b> parameter. The possible modes are described in the reference for the <b>blend()</b> function.]]></description>
<syntax><![CDATA[
blendColor(<kbd>c1</kbd>, <kbd>c2</kbd>, <kbd>MODE</kbd>)
]]></syntax>
<parameter>
<label>c1</label>
<description><![CDATA[color: the first color to blend]]></description>
</parameter>
<parameter>
<label>c2</label>
<description><![CDATA[color: the second color to blend]]></description>
</parameter>
<parameter>
<label>MODE</label>
<description><![CDATA[Either BLEND, ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, or BURN]]></description>
</parameter>
<returns>float</returns>
<related>
blend()
color()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>