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

    Class TintAndShadeAbstract

    Functions related to tint and shade manipulation. These apply a simple linear mixing.

    Index

    Methods

    Methods

    • Darken the color.

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • weight: number

        The weight to apply.

      Returns C

      The generated color.

    • Lighten the color.

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • weight: number

        The weight to apply.

      Returns C

      The generated color.

    • Move the color towards "middle tints" (grays).

      Type Parameters

      Parameters

      • color: C

        The color to manipulate.

      • weight: number

        The weight to apply.

      Returns C

      THe generated color.