@skchr/color
    Preparing search index...

    Function temp

    • Returns a rough estimation of a color's temperature as either 'cool' or 'warm' using the 'lch' colorspace.

      Parameters

      • color: ColorToken = "cyan"

        The color to check the temperature.

      Returns "warm" | "cool"

      • Whether the color is warm or cool.
      import { temp } from '@skchr/color'

      let sample = [
      "#00ffdc",
      "#00ff78",
      "#00c000"
      ];


      console.log(temp(sample[2]));
      // 'cool'

      console.log(map(sample, temp));

      // [ 'cool', 'warm', 'cool']