filter

filter

The filter module contains classes and factories for the various filters supported by Bonsai.

Classes

filter.BaseFilter
filter.Blur
filter.Brightness
filter.ColorMatrix
filter.Contrast
filter.DropShadow
filter.Grayscale
filter.HueRotate
filter.Invert
filter.Opacity
filter.Saturate
filter.Sepia

Methods

<static> blur() → {filter.Blur}

Factory for filter.Blur
Returns:
Type
filter.Blur

<static> brightness() → {filter.Brightness}

Factory for filter.Brightness
Returns:
Type
filter.Brightness

<static> colorMatrix() → {filter.ColorMatrix}

Factory for filter.ColorMatrix
Returns:
Type
filter.ColorMatrix

<static> contrast() → {filter.Contrast}

Factory for filter.Contrast
Returns:
Type
filter.Contrast

<static> createFactory(factoryName, className)

Method to create filter factory.
Parameters:
Name Type Description
factoryName string name of the to be created factory.
className string name of the to be exposed class.

<static> dropShadow() → {filter.DropShadow}

Factory for filter.DropShadow
Returns:
Type
filter.DropShadow

<static> grayscale() → {filter.Grayscale}

Factory for filter.Grayscale
Returns:
Type
filter.Grayscale

<static> hueRotate() → {filter.HueRotate}

Factory for filter.HueRotate
Returns:
Type
filter.HueRotate

<static> invert() → {filter.Invert}

Factory for filter.Invert
Returns:
Type
filter.Invert

<static> opacity() → {filter.Opacity}

Factory for filter.Opacity
Returns:
Type
filter.Opacity

<static> saturate() → {filter.Saturate}

Factory for filter.Saturate
Returns:
Type
filter.Saturate

<static> sepia() → {filter.Sepia}

Factory for filter.Sepia
Returns:
Type
filter.Sepia