Class createjs.WebGLRenderer.Color
Defined in: webgl_renderer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.WebGLRenderer.Color(context, program, key, red, green, blue)
An inner class that encapsulates a color offset used by a color-matrix
filter.
|
Method Attributes | Method Name and Description |
---|---|
bindContext(context)
Binds this color to the specified context.
|
|
set(red, green, blue)
Changes this color.
|
Class Detail
createjs.WebGLRenderer.Color(context, program, key, red, green, blue)
An inner class that encapsulates a color offset used by a color-matrix
filter. This renderer uses a uniform vector (red, green, blue, 0) to
represent a color.
- Parameters:
- {createjs.WebGLRenderer.Context} context
- {WebGLProgram} program
- {string} key
- {number} red
- {number} green
- {number} blue
Method Detail
bindContext(context)
Binds this color to the specified context.
- Parameters:
- {createjs.WebGLRenderer.Context} context
set(red, green, blue)
Changes this color.
- Parameters:
- {number} red
- {number} green
- {number} blue