-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Colour functions and en-US help files implemented.
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
<h3>Color Group</h3> | ||
This group contains functions for manipulating colors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
<h3>color_rgb() function</h3> | ||
Returns a string representation of a color based on its red, green, and blue components | ||
|
||
<p><h4>Syntax</h4> | ||
color_rgb(<i>red, green, blue</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> red</i> → the red component as an integer value from 0 to 255.<br> | ||
<i> green</i> → the green component as an integer value from 0 to 255.<br> | ||
<i> blue</i> → the blue component as an integer value from 0 to 255.<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
color_rgb(255,127,0) → '#ff7f00'</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
<h3>color_rgba() function</h3> | ||
Returns a string representation of a color based on its red, green, blue, and alpha (transparency) components | ||
|
||
<p><h4>Syntax</h4> | ||
color_rgba(<i>red, green, blue, alpha</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> red</i> → the red component as an integer value from 0 to 255.<br> | ||
<i> green</i> → the green component as an integer value from 0 to 255.<br> | ||
<i> blue</i> → the blue component as an integer value from 0 to 255.<br> | ||
<i> alpha</i> → the alpha component as an integer value from 0 (completely transparent) to 255 (opaque).<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
color_rgba(255,127,0,200) → '255,127,0,200'</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
<h3>ramp_color() function</h3> | ||
Returns a string representing a color from a color ramp. | ||
|
||
<p><h4>Syntax</h4> | ||
ramp_color(<i>ramp_name,value</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> ramp_name</i> → the name of the color ramp as a string, for example 'Spectral'.<br> | ||
<i> value</i> → the position on the ramp to select the color from as a real number between 0 and 1.<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
ramp_color('Spectral',0.3) → '#fdbe73'</p> |