def srgb.linear

gralha-svg-render@0.1.0.1 · svg.bend:2127

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

2127def srgb.linear(+v: F32) -> F32:
2128  U.branch(F32, F32.is_le(v, 0.04045), _ => (v / 12.92 : F32), _ => F32.pow(((v + 0.055) / 1.055 : F32), 2.4))

Uses (6)

Used by (2)