Skip to content

Commit 3e06adc

Browse files
authored
changed wording about hex notation for colors, it's not available with color()
1 parent 483bbea commit 3e06adc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Reference/api_en/color.xml

Lines changed: 2 additions & 2 deletions
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 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/>
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>
@@ -88,7 +88,7 @@ color(<c>v1</c>, <c>v2</c>, <c>v3</c>, <c>alpha</c>)
8888

8989
<parameter>
9090
<label>v3</label>
91-
<description><![CDATA[float, or int: blue or brightness values relative to the current color range]]></description>
91+
<description><![CDATA[float, or int: blue or brightness values relative to the current _f range]]></description>
9292
</parameter>
9393

9494
<related>colorMode</related>

0 commit comments

Comments
 (0)