Skip to content

Commit d1038f3

Browse files
authored
Merge pull request jdf#127 from shonin/126
Issue 126: added code blocks around sensitive characters for clarity
2 parents ab8750d + a882342 commit d1038f3

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎Reference/api_en/fill.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rect(30, 20, 55, 55)
2727
<description><![CDATA[
2828
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.)
2929
<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.
3131
<br/><br/>
3232
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.
3333
<br/><br/>

‎Reference/api_en/stroke.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ rect(30, 20, 55, 55)
2525
</example>
2626

2727
<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).
2929
<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.
3131
<br/> <br/>
3232
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.
3333
<br/> <br/>

‎Reference/api_en/tint.xml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ image(img, 50, 0)
3939
</example>
4040

4141
<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 />
4343
<br />
4444
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>).
4545
<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.
4747
<br /><br />
4848
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.
4949
<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.
5151
]]></description>
5252

5353
<syntax>
@@ -59,32 +59,32 @@ The <b>tint()</b> function is also used to control the coloring of textures in 3
5959
tint(v1, v2, v3, alpha)
6060
</syntax>
6161

62-
<parameter>
62+
<parameter>
6363
<label>rgb</label>
6464
<description><![CDATA[ int: color value in hexadecimal notation]]></description>
6565
</parameter>
6666

67-
<parameter>
67+
<parameter>
6868
<label>alpha</label>
6969
<description><![CDATA[ float: opacity of the image]]></description>
7070
</parameter>
7171

72-
<parameter>
72+
<parameter>
7373
<label>gray</label>
7474
<description><![CDATA[ float: specifies a value between white and black]]></description>
7575
</parameter>
7676

77-
<parameter>
77+
<parameter>
7878
<label>v1</label>
7979
<description><![CDATA[ float: red or hue value (depending on color mode)]]></description>
8080
</parameter>
8181

82-
<parameter>
82+
<parameter>
8383
<label>v2</label>
8484
<description><![CDATA[ float: blue or saturation value (depending on color mode)]]></description>
8585
</parameter>
8686

87-
<parameter>
87+
<parameter>
8888
<label>v1</label>
8989
<description><![CDATA[ float: green or brightness value (depending on color mode)]]></description>
9090
</parameter>

0 commit comments

Comments
 (0)