Documentation
    Preparing search index...

    Function parseColorRGB

    • parseColor without the alpha — the three-component form §68's light colours and §59's emissive take.

      const authored = parseColorRGB("#ffcc00");   // sRGB, 0…1
      srgbToLinearRGB(authored, light.color); // §60a: lights are linear-light

      Accepts everything parseColor accepts, including strings that carry an alpha, and discards it: a light has no opacity, and refusing rgba(255, 0, 0, 0.5) here would make a shared palette unusable for lights. The discard is the documented behaviour, not a rounding of it.

      Parameters

      Returns ColorRGB