Skip to content

textmode.filters.js / ContrastOptions

Interface: ContrastOptions

Configuration options for the 'contrast' filter.

Adjusts image contrast by scaling pixel values around mid-gray.

Example

Properties

PropertyTypeDescription
amountnumberContrast multiplier. - 1.0 = normal contrast (no change) - > 1.0 = more contrast (darker darks, brighter brights) - < 1.0 = less contrast (more gray/washed out) - 0.0 = solid gray Default 1.0