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 6050fcd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Reference/api_en/color.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Creates colors for storing in variables of the <b>color</b> datatype. The parame
54
54
<br/>
55
55
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/>
56
56
<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/>
58
58
<br/>
59
59
More about how colors are stored can be found in the reference for the <a href="color_datatype.html">color</a> datatype.
0 commit comments