mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
A color given as {"c": 1e300, ...}, [1e300, 0, 0], {"gray": 1e300}, a Lab
color or a color object with a number past f32::MAX was stored with an
infinite component. paint.setFill, artboard.setProps, swatch.new,
text.create and the other commands that read colors through
cmd::color_value took it.
- color_value refuses a color whose components are not finite, so the
commands that read a color through it answer an error and change
nothing.
- An effect's color (Drop Shadow, Inner Glow, Outer Glow, Shift to Color)
with such a number is refused with "`color` must be a #rrggbb color".
- ui.colorWheel's contrastBackground refuses it as well.
Docs: docs/mcp.md.