Class createjs.Color
Extends
.
Defined in: color.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
createjs.Color(red, green, blue, alpha)
A class representing an ARGB color.
|
| Field Attributes | Field Name and Description |
|---|---|
|
The alpha component.
|
|
|
The blue component.
|
|
|
The green component.
|
|
|
The red component.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addColor(color)
Adds the specified color with this color.
|
|
|
copyColor(color)
Copies the specified color to this color.
|
|
|
getAlpha()
Returns the alpha component of this color.
|
|
|
getBlue()
Returns the blue component of this color.
|
|
|
getGreen()
Returns the green component of this color.
|
|
|
getRed()
Returns the red component of this color.
|
|
|
multiplyColor(color)
Multiplies the specified color with this color.
|
Class Detail
createjs.Color(red, green, blue, alpha)
A class representing an ARGB color.
- Parameters:
- {number} red
- {number} green
- {number} blue
- {number} alpha
Field Detail
alpha_
The alpha component.
blue_
The blue component.
green_
The green component.
red_
The red component.
Method Detail
addColor(color)
Adds the specified color with this color.
- Parameters:
- {createjs.Color} color
copyColor(color)
Copies the specified color to this color.
- Parameters:
- {createjs.Color} color
{number}
getAlpha()
Returns the alpha component of this color.
- Returns:
- {number}
{number}
getBlue()
Returns the blue component of this color.
- Returns:
- {number}
{number}
getGreen()
Returns the green component of this color.
- Returns:
- {number}
{number}
getRed()
Returns the red component of this color.
- Returns:
- {number}
multiplyColor(color)
Multiplies the specified color with this color.
- Parameters:
- {createjs.Color} color