Class createjs.WebGLRenderer.Alpha
Defined in: webgl_renderer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.WebGLRenderer.Alpha(context, program, key, alpha)
An inner class that encapsulates a composite alpha used by this renderer.
|
Method Attributes | Method Name and Description |
---|---|
bindContext(context)
Binds this color to the specified context.
|
|
setAlpha(alpha)
Changes the alpha value of this color.
|
Class Detail
createjs.WebGLRenderer.Alpha(context, program, key, alpha)
An inner class that encapsulates a composite alpha used by this renderer.
This renderer uses a uniform vector (alpha, alpha, alpha, alpha) so it can
pre-multiply this composite alpha to RGB colors.
- Parameters:
- {createjs.WebGLRenderer.Context} context
- {WebGLProgram} program
- {string} key
- {number} alpha
Method Detail
bindContext(context)
Binds this color to the specified context.
- Parameters:
- {createjs.WebGLRenderer.Context} context
setAlpha(alpha)
Changes the alpha value of this color.
- Parameters:
- {number} alpha