Documentation
    Preparing search index...

    Function linearToSrgb

    • Encodes one linear-light component as sRGB (§60a) — the inverse of srgbToLinear, and the arithmetic §60a's output transform performs.

      linearToSrgb(0.21404114048223255);   // 0.5
      

      Odd-extended and non-throwing on the same terms as srgbToLinear.

      Parameters

      • component: number

      Returns number