Skip to content

Commit

Permalink
Colour functions and en-US help files implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrook committed Apr 15, 2013
1 parent 4cb0ae5 commit 0e696a3
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/function_help/Color-en_US
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
16 changes: 16 additions & 0 deletions resources/function_help/color_rgb-en_US
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> &rarr; the red component as an integer value from 0 to 255.<br>
<i> green</i> &rarr; the green component as an integer value from 0 to 255.<br>
<i> blue</i> &rarr; 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) &rarr; '#ff7f00'</p>
17 changes: 17 additions & 0 deletions resources/function_help/color_rgba-en_US
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> &rarr; the red component as an integer value from 0 to 255.<br>
<i> green</i> &rarr; the green component as an integer value from 0 to 255.<br>
<i> blue</i> &rarr; the blue component as an integer value from 0 to 255.<br>
<i> alpha</i> &rarr; 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) &rarr; '255,127,0,200'</p>
15 changes: 15 additions & 0 deletions resources/function_help/ramp_color-en_US
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> &rarr; the name of the color ramp as a string, for example 'Spectral'.<br>
<i> value</i> &rarr; 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) &rarr; '#fdbe73'</p>

0 comments on commit 0e696a3

Please sign in to comment.