def linear.srgb

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

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

2130def linear.srgb(+v: F32) -> F32:
2131  U.branch(F32, F32.is_le(v, 0.0031308), _ => (v * 12.92 : F32),
2132    _ => (1.055 * F32.pow(v, 0.4166666666666667) - 0.055 : F32))

Uses (6)

Used by (2)