Files
vectorcraft/crates/engine/tests
dotCooCoo 8f1edd0644 Colors: a color with a component too large to store is refused
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.
2026-11-29 07:11:18 -08:00
..