Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ToneFilter

Hierarchy

Index

Constructors

constructor

Properties

alpha

alpha: number

autoFit

autoFit: boolean

blendMode

blendMode: number

enabled

enabled: boolean

fragmentSrc

fragmentSrc: string

Optional glShaderKey

glShaderKey: number

glShaders

glShaders: any

matrix

matrix: number[]

padding

padding: number

resolution

resolution: number

Protected uniformData

uniformData: {}

Type declaration

uniforms

uniforms: {} | any

Optional vertextSrc

vertextSrc: string

Static defaultFragmentSrc

defaultFragmentSrc: string

Static defaultVertexSrc

defaultVertexSrc: string

Methods

Protected _colorMatrix

  • _colorMatrix(matrix: number[]): void

Protected _loadMatrix

  • _loadMatrix(matrix: number[], multiply?: boolean): void

Protected _multiply

  • _multiply(out: number[], a: number[], b: number[]): void

adjustHue

  • adjustHue(value?: number): void

adjustSaturation

  • adjustSaturation(value?: number): void
  • Changes the saturation.

    method

    adjustSaturation

    Parameters

    • Optional value: number

      The saturation value in the range (-255, 255)

    Returns void

adjustTone

  • adjustTone(r?: number, g?: number, b?: number): void
  • Changes the tone.

    method

    adjustTone

    Parameters

    • Optional r: number

      The red strength in the range (-255, 255)

    • Optional g: number

      The green strength in the range (-255, 255)

    • Optional b: number

      The blue strength in the range (-255, 255)

    Returns void

apply

blackAndWhite

  • blackAndWhite(multiply?: boolean): void

brightness

  • brightness(b: number, multiply?: boolean): void

browni

  • browni(multiply?: boolean): void

colorTone

  • colorTone(desaturation: number, toned: number, lightColor: string, darkColor: string, multiply?: boolean): void

contrast

  • contrast(amount: number, multiply?: boolean): void

desaturate

  • desaturate(multiply?: boolean): void

greyscale

  • greyscale(scale: number, multiply?: boolean): void

hue

  • hue(rotation: number, multiply?: boolean): void

kodachrome

  • kodachrome(multiply?: boolean): void

lsd

  • lsd(multiply?: boolean): void

negative

  • negative(multiply?: boolean): void

night

  • night(intensity: number, multiply?: boolean): void

polaroid

  • polaroid(multiply?: boolean): void

predator

  • predator(amount: number, multiply?: boolean): void

reset

  • reset(): void

saturate

  • saturate(amount: number, multiply?: boolean): void

sepia

  • sepia(multiply?: boolean): void

technicolor

  • technicolor(multiply?: boolean): void

toBGR

  • toBGR(multiply?: boolean): void

vintage

  • vintage(multiply?: boolean): void

Generated using TypeDoc