Class: GrayFilter

PIXI.filters. GrayFilter

new PIXI.filters.GrayFilter()

This greyscales the palette of your Display Objects.

Extends

Members

graynumber

The strength of the gray. 1 will make the object black and white, 0 will make the object its normal color.

paddingnumber

The extra padding that the filter might need

uniformsobject

The uniforms as an object

Methods

inherited applyFilter(renderer, input, output, clear)

Applies the filter

Name Type Description
renderer PIXI.WebGLRenderer

The renderer to retrieve the filter from

input PIXI.RenderTarget
output PIXI.RenderTarget
clear boolean

Whether or not we want to clear the outputTarget

Grabs a shader from the current renderer

Name Type Description
renderer PIXI.WebGLRenderer

The renderer to retrieve the shader from

Syncs a uniform between the class object and the shaders.