An Effect Function for the contrast effect.

interface ContrastEffectFunctionJson {
    amount?: number;
    type: "contrast";
}

Hierarchy

  • GenericEffectFunctionJson
    • ContrastEffectFunctionJson

Properties

Properties

amount?: number

Amount of effect. A value of 0 leaves the input unchanged. Grayscale, invert, sepia, and opacity effects accept a maximum amount of 1 which applies the effect at 100%. Brightness, contrast, and saturate can accept amount above 1. Negative values are not allowed.

type

Effect type.