mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Documentation: Add optional alpha parameter to the different color constructors.
This commit is contained in:
parent
70a3300927
commit
d644bbaa09
1 changed files with 6 additions and 0 deletions
|
@ -466,6 +466,8 @@ var GrayColor = this.GrayColor = Color.extend(/** @scope GrayColor */{
|
|||
*
|
||||
* @param {Number} gray the amount of gray in the color as a value
|
||||
* between {@code 0} and {@code 1}
|
||||
* @param {Number} [alpha] the alpha of the color as a value between
|
||||
* {@code 0} and {@code 1}
|
||||
* @constructor
|
||||
* @name GrayColor
|
||||
*
|
||||
|
@ -486,6 +488,8 @@ var RGBColor = this.RGBColor = Color.extend(/** @scope RGBColor */{
|
|||
* between {@code 0} and {@code 1}
|
||||
* @param {Number} blue the amount of blue in the color as a value
|
||||
* between {@code 0} and {@code 1}
|
||||
* @param {Number} [alpha] the alpha of the color as a value between
|
||||
* {@code 0} and {@code 1}
|
||||
* @constructor
|
||||
* @name RGBColor
|
||||
*
|
||||
|
@ -506,6 +510,8 @@ var HSBColor = this.HSBColor = Color.extend(/** @scope HSBColor */{
|
|||
* between {@code 0} and {@code 1}
|
||||
* @param {Number} brightness the brightness of the color as a value
|
||||
* between {@code 0} and {@code 1}
|
||||
* @param {Number} [alpha] the alpha of the color as a value between
|
||||
* {@code 0} and {@code 1}
|
||||
* @constructor
|
||||
* @name HSBColor
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue