Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add color_cmyk and color_cmyka functions
- Loading branch information
1 parent
c038374
commit 6e5221c
Showing
4 changed files
with
84 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,17 @@ | ||
|
||
<h3>color_cmyk() function</h3> | ||
Returns a string representation of a color based on its cyan, magenta, yellow and black components | ||
|
||
<p><h4>Syntax</h4> | ||
color_cmyk(<i>cyan, magenta, yellow, black</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> cyan</i> → the cyan component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> magenta</i> → the magenta component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> yellow</i> → the yellow component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> black</i> → the black component of the color, as a percentage integer value from 0 to 100.<br> | ||
|
||
<p><h4>Example</h4> | ||
<!-- Show example of function.--> | ||
color_cmyk(100,50,0,10) → '#0073e6'</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,18 @@ | ||
|
||
<h3>color_cmyka() function</h3> | ||
Returns a string representation of a color based on its cyan, magenta, yellow, black and alpha (transparency) components | ||
|
||
<p><h4>Syntax</h4> | ||
color_cmyka(<i>cyan, magenta, yellow, black, alpha</i>)</p> | ||
|
||
<p><h4>Arguments</h4> | ||
<!-- List args for functions here--> | ||
<i> cyan</i> → the cyan component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> magenta</i> → the magenta component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> yellow</i> → the yellow component of the color, as a percentage integer value from 0 to 100.<br> | ||
<i> black</i> → the black component of the color, as a percentage integer value 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_cmyka(100,50,0,10,200) → '0,115,230,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