The Ghostscript tiger: every one of its 240 paths filled and stroked by gezira's own kernels, the same Nile on the CPU or the GPU.
Rendering: about 310 lines of Nile and 190 of TypeScript, compiled by umgeni. The page’s interface isn’t counted.
These Nile pipelines draw the Ghostscript Tiger's 240 SVG paths. Plain
TypeScript lexes each path's d attribute into
PathCommands, and PathCubics interprets them into
cubic curves. SvgFill transforms a path's cubics, flattens them
to quadratic beziers, clips them and rasterizes them into coverage spans;
SvgStroke transforms and flattens them, then outlines them with
gezira's stroker. PaintSpans turns the spans into coloured
pixels, which TypeScript writes to the canvas. The pipelines are
parameterized by the view matrix (zoom and pan), the SVG's own transform,
the clip rectangle and, for strokes, the width, a minimum width, the join and
the cap. On the GPU, rasterizing and compositing run as WGSL.