Class: CRTFilter

CRTFilter

The CRTFilter applies a CRT effect to an object.
originalfilter

new CRTFilter (options)

Name Type Attributes Default Description
options object <optional>

The optional parameters of CRT effect

options.curvature number <optional>
1.0

Bent of interlaced lines, higher value means more bend

options.lineWidth number <optional>
1.0

Width of the interlaced lines

options.lineContrast number <optional>
0.25

Contrast of interlaced lines

options.verticalLine number <optional>
false

true is vertical lines, false is horizontal

options.noise number <optional>
0.3

Opacity/intensity of the noise effect between 0 and 1

options.noiseSize number <optional>
1.0

The size of the noise particles

options.seed number <optional>
0

A seed value to apply to the random noise generation

options.vignetting number <optional>
0.3

The radius of the vignette effect, smaller values produces a smaller vignette

options.vignettingAlpha number <optional>
1.0

Amount of opacity of vignette

options.vignettingBlur number <optional>
0.3

Blur intensity of the vignette

options.time number <optional>
0

For animating interlaced lines

See:

Extends

  • PIXI.Filter

Members

CRTFilter.defaults CRTFilterOptions staticreadonly

Default constructor options

curvature number

Bent of interlaced lines, higher value means more bend

Default Value:
  • 1

lineContrast number

Contrast of interlaced lines

Default Value:
  • 0.25

lineWidth number

Width of interlaced lines

Default Value:
  • 1

noise number

Opacity/intensity of the noise effect between 0 and 1

Default Value:
  • 0

noiseSize number

The size of the noise particles

Default Value:
  • 0

seed number

A seed value to apply to the random noise generation

Default Value:
  • 0

time number

For animating interlaced lines

Default Value:
  • 0

verticalLine boolean

true for vertical lines, false for horizontal lines

Default Value:
  • false

vignetting number

The radius of the vignette effect, smaller values produces a smaller vignette

Default Value:
  • 0

vignettingAlpha number

Amount of opacity of vignette

Default Value:
  • 0

vignettingBlur number

Blur intensity of the vignette

Default Value:
  • 0