API Docs for: 2.0.0
Show:

ColorStepFilter Class

This lowers the color depth of your image by the given amount, producing an image with a smaller palette.

Constructor

ColorStepFilter

()

Methods

syncUniforms

()

Syncs the uniforms between the class object and the shaders.

Properties

fragmentSrc

Array private

padding

Number

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.

shaders

Array an array of shaders private

step

Number

The number of steps to reduce the palette by.

uniforms

Object private