mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-05 04:14:54 +00:00
Add link to github page from that the hsl code is adapted
This commit is contained in:
parent
66fc8f4d4b
commit
c96bc217c2
1 changed files with 3 additions and 1 deletions
|
|
@ -56,6 +56,7 @@
|
|||
},
|
||||
|
||||
/**
|
||||
* Adapted from <a href="https://rawgithub.com/mjijackson/mjijackson.github.com/master/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript.html">https://github.com/mjijackson</a>
|
||||
* @private
|
||||
* @param {Number} r Red color value
|
||||
* @param {Number} g Green color value
|
||||
|
|
@ -342,7 +343,8 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in HSL or HSLA format
|
||||
* Returns array represenatation (ex: [100, 100, 200, 1]) of a color that's in HSL or HSLA format.
|
||||
* Adapted from <a href="https://rawgithub.com/mjijackson/mjijackson.github.com/master/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript.html">https://github.com/mjijackson</a>
|
||||
* @param {String} color ex: hsl(0-360,0%-100%,0%-100%) or hsla(0-360,0%-100%,0%-100%, 0-1)
|
||||
* @return {Array} source
|
||||
* @see http://http://www.w3.org/TR/css3-color/#hsl-color
|
||||
|
|
|
|||
Loading…
Reference in a new issue