def paint.color

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

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-image@0.1.0.1/image.bend as Img

5299def paint.color(solid: Bool, +ctx: PaintCtx, +p: Point) -> Img.Color:
5300  match solid:
5301    case True{}: paint.tint.ctx(ctx)
5302    case False{}: paint.sampled.ctx(ctx, p)

Uses (6)

Used by (1)