new Contrast(intensity)
Contrast filter
Parameters:
Name | Type | Description |
---|---|---|
intensity |
Number | A number between 0 and 1 representing the intensity |
Extends
Members
(constant) filters
All possible filters
- Overrides:
- 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"
- Overrides:
- Source:
unit :String
Used to construct the filter string
Type:
- String
- Overrides:
- Source:
value :Number
The value of the filter
Type:
- Number
- Overrides:
- Source:
Methods
toString() → {String}
The toString function
- Overrides:
- Source:
Returns:
- Type
- String