Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColorMatrixFilter

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

    • matrix: number[]

    Returns 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

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