ColorStepFilter Class
+ + + + +
+
+
+
+ This lowers the color depth of your image by the given amount, producing an image with a smaller palette.
+ +
+
+
+
+Constructor
+
+
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ColorStepFilter
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
- Index + + +
- Methods + + +
- Properties + + + +
+
+
+
+
+
+ Item Index
+ + +
+
+
+
+
+
+
+
+
+
+
+ Methods
+ +-
+
+
- + syncUniforms + + + + + +
+
+
+
+
+ Methods
+ + +
+
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ syncUniforms
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Syncs the uniforms between the class object and the shaders.
+ +
+
+
+
+
+
+
+ Properties
+ + +
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dirty
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Array
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+ fragmentSrc
+ Array
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ padding
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Array an array of filter objects
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+ passes
+ Array an array of filter objects
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+An array of passes - some filters contain a few steps this array simply stores the steps in a liniear fashion. +For example the blur filter has two passes blurX and blurY.
+ +
+
+ Array an array of shaders
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+ shaders
+ Array an array of shaders
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ step
+ Number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+The number of steps to reduce the palette by.
+ +
+
+ Object
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+ uniforms
+ Object
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+