EaselJS

EaselJS  0.4.1

EaselJS > EaselJS > ColorMatrixFilter
Search:
 
Filters

Class ColorMatrixFilter

Applies color transforms.

Constructor

ColorMatrixFilter ( blurX )
Parameters:
blurX <Number>

Methods

applyFilter

void applyFilter ( ctx , x , y , width , height , targetCtx , targetX , targetY )
Applies the filter to the specified context.
Parameters:
ctx <object> The 2D context to use as the source.
x <object> The x position to use for the source rect.
y <object> The y position to use for the source rect.
width <object> The width to use for the source rect.
height <object> The height to use for the source rect.
targetCtx <object> Optional. The 2D context to draw the result to. Defaults to the context passed to ctx.
targetX <object> Optional. The x position to draw the result to. Defaults to the value passed to x.
targetY <object> Optional. The y position to draw the result to. Defaults to the value passed to y.
Returns: void

clone

ColorMatrixFilter clone ( )
Returns a clone of this ColorMatrixFilter instance.
Returns: ColorMatrixFilter
A clone of the current ColorMatrixFilter instance.

initialize

protected void initialize ( matrix )
Allows you to carry out complex color operations such as modifying saturation, brightness, or inverting.
Parameters:
matrix <object> A 4x5 matrix describing the color operation to perform.
Returns: void

toString

String toString ( )
Returns a string representation of this object.
Returns: String
a string representation of the instance.