Class: Filter

Filter()

new Filter()

Represents a filter that can be applied to the canvas
Source:

Classes

Filter
Blur
Brightness
Contrast
DropShadow
Grayscale
HueRotate
Invert
Opacity
Saturation
Sepia
Url

Members

(constant) filters

All possible filters
Source:

type :"url"|"blur"|"brightness"|"contrast"|"dropShadow"|"Grayscale"|"hue-rotate"|"invert"|"opacity"|"saturate"|"sepia"

The type of the filter
Type:
  • "url" | "blur" | "brightness" | "contrast" | "dropShadow" | "Grayscale" | "hue-rotate" | "invert" | "opacity" | "saturate" | "sepia"
Source:

unit :String

Used to construct the filter string
Type:
  • String
Source:

value :Number

The value of the filter
Type:
  • Number
Source:

Methods

toString() → {String}

The toString function
Source:
Returns:
Type
String