Class createjs.ColorMatrix
Extends
.
Defined in: color_matrix.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.ColorMatrix(brightness, contrast, saturation, hue)
A class that implements a color-transformation matrix.
|
Method Attributes | Method Name and Description |
---|---|
adjustBrightness(brightness)
Applies the brightness filter.
|
|
adjustColor(brightness, contrast, saturation, hue)
Applies color filters.
|
|
adjustContrast(contrast)
Applies the contrast filter.
|
|
adjustHue(hue)
Applies the hue-rotation filter.
|
|
adjustSaturation(saturation)
Applies the saturation filter.
|
|
concat(matrix)
Multiplies this matrix by the specified one.
|
|
copyArray(matrix)
Copies the specified array.
|
|
reset()
Sets this matrix to the identify one.
|
|
setColor(brightness, contrast, saturation, hue)
Initializes this matrix and applies color filters.
|
|
toArray()
Returns the color matrix.
|
Class Detail
createjs.ColorMatrix(brightness, contrast, saturation, hue)
A class that implements a color-transformation matrix.
- Parameters:
- {number} brightness
- {number} contrast
- {number} saturation
- {number} hue
Method Detail
{createjs.ColorMatrix}
adjustBrightness(brightness)
Applies the brightness filter.
- Parameters:
- {number} brightness
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
adjustColor(brightness, contrast, saturation, hue)
Applies color filters.
- Parameters:
- {number} brightness
- {number} contrast
- {number} saturation
- {number} hue
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
adjustContrast(contrast)
Applies the contrast filter.
- Parameters:
- {number} contrast
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
adjustHue(hue)
Applies the hue-rotation filter.
- Parameters:
- {number} hue
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
adjustSaturation(saturation)
Applies the saturation filter.
- Parameters:
- {number} saturation
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
concat(matrix)
Multiplies this matrix by the specified one.
- Parameters:
-
{Array.
} matrix
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
copyArray(matrix)
Copies the specified array.
- Parameters:
-
{Array.
} matrix
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
reset()
Sets this matrix to the identify one.
- Returns:
- {createjs.ColorMatrix}
{createjs.ColorMatrix}
setColor(brightness, contrast, saturation, hue)
Initializes this matrix and applies color filters.
- Parameters:
- {number} brightness
- {number} contrast
- {number} saturation
- {number} hue
- Returns:
- {createjs.ColorMatrix}
{Array.}
toArray()
Returns the color matrix.
- Returns:
- {Array.
}