def context.unfaded

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

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

3679# Resolve context paints after compiling the finite scene tree. Paint server
3680# coordinates stay in the referencing shape's space, including bounding boxes.
3681def context.unfaded(+brush: Brush) -> Brush:
3682  match brush:
3683    case Bitmap{raster, inv, nearest}: Bitmap{raster, inv, nearest}
3684    case Solid{col, source}: Solid{source, source}
3685    case PendingContext{stroke, opacity}: PendingContext{stroke, 1.0}
3686    case ContextPaint{source, matrix, opacity}: ContextPaint{source, matrix, 1.0}
3687    case Pattern{inverse, width, height, opacity, nodes}: Pattern{inverse, width, height, 1.0, nodes}
3688    case Tile{raster, inverse, width, height, opacity, u, v, grid}: Tile{raster, inverse, width, height, 1.0, u, v, grid}
3689    case Gradient{inv, radial, start, end, radius, fr, stops, spread, opacity, linear}: Gradient{inv, radial, start, end, radius, fr, stops, spread, 1.0, linear}

Uses (1)

Used by (1)