Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add color_hsv and color_hsva functions
- Loading branch information
1 parent
d52e007
commit c038374
Showing
6 changed files
with
82 additions
and
5 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
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
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_hsv() function</h3> | ||
Returns a string representation of a color based on its hue, saturation, and value attributes | ||
|
||
<p><h4>Syntax</h4> | ||
color_hsv(<i>hue, saturation, value</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> hue</i> → the hue of the color, as an integer value from 0 to 360.<br> | ||
<i> saturation</i> → the saturation percentage of the color as an integer value from 0 to 100.<br> | ||
<i> value</i> → the value percentage of the color as an integer from 0 to 100.<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
color_hsv(40,100,100) → '#ffaa00'</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_hsva() function</h3> | ||
Returns a string representation of a color based on its hue, saturation, value and alpha (transparency) attributes | ||
|
||
<p><h4>Syntax</h4> | ||
color_hsva(<i>hue, saturation, value, alpha</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> hue</i> → the hue of the color, as an integer value from 0 to 360.<br> | ||
<i> saturation</i> → the saturation percentage of the color as an integer value from 0 to 100.<br> | ||
<i> value</i> → the value percentage of the color as an integer from 0 to 100.<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_hsva(40,100,100,200) → '255,170,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
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