Class: CRTFilter

CRTFilter

The CRTFilter applies a CRT effect to an object.
originalfilter

new CRTFilter (options)

Name Type Attributes Description
options CRTFilterOptions <optional>

Options for the CRTFilter constructor.

Extends

  • Filter

Members

DEFAULT_OPTIONS CRTFilterOptions staticreadonly

Default values for options.

curvature number

Bend 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.3

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

Opacity/intensity of the noise effect between 0 and 1

Default Value:
  • 0.3

verticalLine boolean

The orientation of the line:

true create vertical lines, false creates horizontal lines

Default Value:
  • false

vignetting number

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

Default Value:
  • 0.3

vignettingAlpha number

Amount of opacity of vignette

Default Value:
  • 1

vignettingBlur number

Blur intensity of the vignette

Default Value:
  • 0.3