def clip.fade

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

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
import gralha-image@0.1.0.1/image.bend as Img

2491def clip.fade(+cov: F32, render: Unit -> Img.Color) -> Img.Color:
2492  U.branch(Img.Color, F32.is_gt(cov, 0.0), _ => color.fade(render(Unit{}), cov), _ => Img.clear())

Uses (7)

Used by (1)