Class Index | File Index

Classes


Class createjs.WebGLRenderer.ColorMatrix


Defined in: webgl_renderer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.WebGLRenderer.ColorMatrix(context, program, key)
An inner class that encapsulates a color-transform matrix used by a color-matrix filter.
Method Summary
Method Attributes Method Name and Description
 
bindContext(context)
Binds this transform to the specified context.
 
Resets this matrix to the initial one, i.e.
 
set(matrix)
Sets the values of this matrix.
Class Detail
createjs.WebGLRenderer.ColorMatrix(context, program, key)
An inner class that encapsulates a color-transform matrix used by a color-matrix filter. This matrix is a transposed 4x4 matrix as listed below. (The uniformMatrix4fv() method needs a transposed matrix on Chrome and Firefox.) | m00 m10 m20 m30 | | m01 m11 m21 m31 | | m02 m12 m22 m32 | | m03 m13 m23 m33 |
Parameters:
{createjs.WebGLRenderer.Context} context
{WebGLProgram} program
{string} key
Method Detail
bindContext(context)
Binds this transform to the specified context.
Parameters:
{createjs.WebGLRenderer.Context} context

reset()
Resets this matrix to the initial one, i.e. the identify matrix.

set(matrix)
Sets the values of this matrix. This method transposes the top-left 3x3 sub-matrix of the input matrix and copies its values. (The input matrix is a matrix used by a color-matrix filter, i.e. a 5x5 matrix.)
Parameters:
{Array.} matrix

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)