@OPEN-KAPPA/COLORS
    Preparing search index...

    Class SaturationAbstract

    Functions to manipulate color saturation.

    Index

    Methods

    • Balance the saturation pushing it towards a middle saturation.

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • ratio: number

        The shift ratio.

      • OptionaltargetChroma: number

        Optional chroma "middle value".

      Returns C

      The manipulated color.

      If the color space has no chroma, which is impossible if typeing is respected.

      If the chroma is unbounded.

    • Decrease the saturation.

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • ratio: number

        The shift ratio.

      • OptionaltargetChroma: number

        Optional min chroma.

      Returns C

      The manipulated color.

      If the color space has no chroma, which is impossible if typeing is respected.

      If the chroma is unbounded.

    • Increase the saturation.

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • ratio: number

        The shift ratio.

      • OptionaltargetChroma: number

        Optional max chroma.

      Returns C

      The manipulated color.

      If the color space has no chroma, which is impossible if typeing is respected.

      If the chroma is unbounded.