Skip to content

Commit 483bbea

Browse files
authored
fiz hexadecimal example
jdf/Processing.py-Bugs#296
1 parent ba9dfa5 commit 483bbea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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, it is not necessary to use <b>color()</b>, as in: <b>c = '#006699' # or 0xFF006699</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)