You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1038f3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Reference/api_en/fill.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ rect(30, 20, 55, 55)
27
27
<description><![CDATA[
28
28
Sets the color used to fill shapes. For example, if you run <b>fill(204, 102, 0)</b>, all subsequent shapes will be filled with orange. This color is either specified in terms of the RGB or HSB color depending on the current <b>colorMode()</b>. (The default color space is RGB, with each value in the range from 0 to 255.)
29
29
<br/><br/>
30
-
When using hexadecimal notation to specify a color, use "#" or "0x" before the values (e.g., #CCFFAA or 0xFFCCFFAA). The # syntax uses six digits to specify a color (just as colors are typically specified in HTML and CSS). When using the hexadecimal notation starting with "0x", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component, and the remainder define the red, green, and blue components.
30
+
When using hexadecimal notation to specify a color, use "<code>#</code>" or "<code>0x</code>" before the values (e.g., <code>#CCFFAA</code> or <code>0xFFCCFFAA</code>). The # syntax uses six digits to specify a color (just as colors are typically specified in HTML and CSS). When using the hexadecimal notation starting with "<code>0x</code>", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component, and the remainder define the red, green, and blue components.
31
31
<br/><br/>
32
32
The value for the "gray" parameter must be less than or equal to the current maximum value as specified by <b>colorMode()</b>. The default maximum value is 255.
Copy file name to clipboardExpand all lines: Reference/api_en/stroke.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ rect(30, 20, 55, 55)
25
25
</example>
26
26
27
27
<description><![CDATA[
28
-
Sets the color used to draw lines and borders around shapes. This color is either specified in terms of the RGB or HSB color depending on the current <b>colorMode()</b> (the default color space is RGB, with each value in the range from 0 to 255).
28
+
Sets the color used to draw lines and borders around shapes. This color is either specified in terms of the RGB or HSB color depending on the current <b>colorMode()</b> (the default color space is RGB, with each value in the range from 0 to 255).
29
29
<br/> <br/>
30
-
When using hexadecimal notation to specify a color, use "#" or "0x" before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six digits to specify a color (the way colors are specified in HTML and CSS). When using the hexadecimal notation starting with "0x", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component and the remainder the red, green, and blue components.
30
+
When using hexadecimal notation to specify a color, use "<code>#</code>" or "<code>0x</code>" before the values (e.g. <code>#CCFFAA</code>, <code>0xFFCCFFAA</code>). The # syntax uses six digits to specify a color (the way colors are specified in HTML and CSS). When using the hexadecimal notation starting with "<code>0x</code>", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component and the remainder the red, green, and blue components.
31
31
<br/> <br/>
32
32
The value for the gray parameter must be less than or equal to the current maximum value as specified by <b>colorMode()</b>. The default maximum value is 255.
Copy file name to clipboardExpand all lines: Reference/api_en/tint.xml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,15 @@ image(img, 50, 0)
39
39
</example>
40
40
41
41
<description><![CDATA[
42
-
Sets the fill value for displaying images. Images can be tinted to specified colors or made transparent by including an alpha value.<br />
42
+
Sets the fill value for displaying images. Images can be tinted to specified colors or made transparent by including an alpha value.<br />
43
43
<br />
44
44
To apply transparency to an image without affecting its color, use white as the tint color and specify an alpha value. For instance, tint(255, 128) will make an image 50% transparent (assuming the default alpha range of 0-255, which can be changed with <b>colorMode()</b>).
45
45
<br /><br />
46
-
When using hexadecimal notation to specify a color, use "#" or "0x" before the values (e.g. #CCFFAA, 0xFFCCFFAA). The # syntax uses six digits to specify a color (the way colors are specified in HTML and CSS). When using the hexadecimal notation starting with "0x", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component and the remainder the red, green, and blue components.
46
+
When using hexadecimal notation to specify a color, use "<code>#</code>" or "<code>0x</code>" before the values (e.g. <code>#CCFFAA</code>, <code>0xFFCCFFAA</code>). The # syntax uses six digits to specify a color (the way colors are specified in HTML and CSS). When using the hexadecimal notation starting with "<code>0x</code>", the hexadecimal value must be specified with eight characters; the first two characters define the alpha component and the remainder the red, green, and blue components.
47
47
<br /><br />
48
48
The value for the gray parameter must be less than or equal to the current maximum value as specified by <b>colorMode()</b>. The default maximum value is 255.
49
49
<br /><br />
50
-
The <b>tint()</b> function is also used to control the coloring of textures in 3D.
50
+
The <b>tint()</b> function is also used to control the coloring of textures in 3D.
51
51
]]></description>
52
52
53
53
<syntax>
@@ -59,32 +59,32 @@ The <b>tint()</b> function is also used to control the coloring of textures in 3
59
59
tint(v1, v2, v3, alpha)
60
60
</syntax>
61
61
62
-
<parameter>
62
+
<parameter>
63
63
<label>rgb</label>
64
64
<description><![CDATA[ int: color value in hexadecimal notation]]></description>
65
65
</parameter>
66
66
67
-
<parameter>
67
+
<parameter>
68
68
<label>alpha</label>
69
69
<description><![CDATA[ float: opacity of the image]]></description>
70
70
</parameter>
71
71
72
-
<parameter>
72
+
<parameter>
73
73
<label>gray</label>
74
74
<description><![CDATA[ float: specifies a value between white and black]]></description>
75
75
</parameter>
76
76
77
-
<parameter>
77
+
<parameter>
78
78
<label>v1</label>
79
79
<description><![CDATA[ float: red or hue value (depending on color mode)]]></description>
80
80
</parameter>
81
81
82
-
<parameter>
82
+
<parameter>
83
83
<label>v2</label>
84
84
<description><![CDATA[ float: blue or saturation value (depending on color mode)]]></description>
85
85
</parameter>
86
86
87
-
<parameter>
87
+
<parameter>
88
88
<label>v1</label>
89
89
<description><![CDATA[ float: green or brightness value (depending on color mode)]]></description>
0 commit comments