mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
PDF import turned every function-based shading (ShadingType 1) into a flat mid-grey. Chromium writes a CSS repeating-linear-gradient this way, so a red and white hatch came in as a grey bar. A function-based shading whose colour changes along one axis of its domain only now becomes a linear gradient across the domain: stops sampled along that axis, each hard colour change (found by halving the interval between two samples) two stops at one offset. One whose colour changes in two directions comes in as its average colour, with a warning. Either paints only over the shading's domain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>