Class lime.fill.Color
Extends
lime.fill.Fill.
Defined in: color.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.fill.Color(clr)
Color fill
|
| Field Attributes | Field Name and Description |
|---|---|
|
Common name for color objects
|
- Fields borrowed from class lime.fill.Fill:
- initForSprite
| Method Attributes | Method Name and Description |
|---|---|
|
addBrightness(value)
Make color lighter
|
|
|
addSaturation(value)
Make color more saturated
|
|
|
clone()
Clone the color
|
|
|
getRgba()
Gets color as RGBA array.
|
|
|
modifyColor(mode, value)
Modify color value
|
|
|
setCanvasStyle(context)
|
|
|
setColor(clr)
Set color value of the object.
|
|
|
setDOMStyle(domEl)
|
Field Detail
id
Common name for color objects
Method Detail
{lime.fill.Color}
addBrightness(value)
Make color lighter
- Parameters:
- {number} value
- Brightness factor.
- Returns:
- {lime.fill.Color} object itself.
{lime.fill.Color}
addSaturation(value)
Make color more saturated
- Parameters:
- {number} value
- Saturation factor.
- Returns:
- {lime.fill.Color} ibject itself.
{lime.fill.Color}
clone()
Clone the color
- Returns:
- {lime.fill.Color} New cloned color.
{null|Array.}
getRgba()
Gets color as RGBA array.
- Returns:
- {null|Array.
} RGBA array.
{lime.fill.Color}
modifyColor(mode, value)
Modify color value
- Parameters:
- {number} mode
- Settings to change.
- {number} value
- Amount factor.
- Returns:
- {lime.fill.Color} object itself.
setCanvasStyle(context)
- Parameters:
- context
{lime.fill.Color}
setColor(clr)
Set color value of the object. Accepts raw RGB(A) values and strings.
- Parameters:
- {*} clr
- New color value.
- Returns:
- {lime.fill.Color} object itself.
setDOMStyle(domEl)
- Parameters:
- domEl