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: object

Type declaration

uniforms

uniforms: object | 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
  • Parameters

    • matrix: number[]
    • Optional multiply: boolean

    Returns void

Protected _multiply

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

    • out: number[]
    • a: number[]
    • b: number[]

    Returns void

adjustHue

  • adjustHue(value?: number): void
  • Changes the hue.

    method

    adjustHue

    Parameters

    • Optional value: number

      The hue value in the range (-360, 360)

    Returns 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
  • Parameters

    • Optional multiply: boolean

    Returns void

brightness

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

    • b: number
    • Optional multiply: boolean

    Returns void

browni

  • browni(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

colorTone

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

    • desaturation: number
    • toned: number
    • lightColor: string
    • darkColor: string
    • Optional multiply: boolean

    Returns void

contrast

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

    • amount: number
    • Optional multiply: boolean

    Returns void

desaturate

  • desaturate(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

greyscale

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

    • scale: number
    • Optional multiply: boolean

    Returns void

hue

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

    • rotation: number
    • Optional multiply: boolean

    Returns void

kodachrome

  • kodachrome(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

lsd

  • lsd(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

negative

  • negative(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

night

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

    • intensity: number
    • Optional multiply: boolean

    Returns void

polaroid

  • polaroid(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

predator

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

    • amount: number
    • Optional multiply: boolean

    Returns void

reset

  • reset(): void

saturate

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

    • amount: number
    • Optional multiply: boolean

    Returns void

sepia

  • sepia(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

technicolor

  • technicolor(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

toBGR

  • toBGR(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

vintage

  • vintage(multiply?: boolean): void
  • Parameters

    • Optional multiply: boolean

    Returns void

Generated using TypeDoc