Skip to content

Commit 6050fcd

Browse files
authored
Merge pull request #172 from villares/patch-2
fix hexadecimal example
2 parents a837fed + 240d080 commit 6050fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Reference/api_en/color.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Creates colors for storing in variables of the <b>color</b> datatype. The parame
5454
<br/>
5555
Note that if only one value is provided to <b>color()</b>, it will be interpreted as a grayscale value. Add a second value, and it will be used for alpha transparency. When three values are specified, they are interpreted as either RGB or HSB values. Adding a fourth value applies alpha transparency.<br/>
5656
<br/>
57-
Note that when using hexadecimal notation, it is not necessary to use <b>color()</b>, as in: <b>c = #006699</b><br/>
57+
Note that when using hexadecimal notation in Python Mode you need to either make it a string or a 4-byte hexadecimal literal, as in: <b>fill('#006699') # or fill(0xFF006699)</b>, and the string version can't be used with <b>color()</b>.<br/>
5858
<br/>
5959
More about how colors are stored can be found in the reference for the <a href="color_datatype.html">color</a> datatype.
6060
]]></description>

0 commit comments

Comments
 (0)