mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
Object > Expand and Object > Create Gradient Mesh mixed a freeform gradient's points in display RGB and turned the result back into the points' model with the profile-free formula. CMYK inks changed: points of C50 M20 Y0 K10 gave mesh points of C45 M24 Y0 K22. RGB points were stored as display sRGB, so with a working RGB space other than sRGB the mesh showed other colors. Points colored along CMYK stops, a point paint.freeform.splitLine added between CMYK points and a point paint.freeform.addPoint added without a color came out as RGB. Points that share a color model now mix in it: the C, M, Y and K values mix as inks, and Gray, RGB and Lab components mix as they are. Points in different models still mix in display RGB. Object > Expand and Object > Create Gradient Mesh store the result in the working RGB space, and in a CMYK document they store it as CMYK through the color settings, as paint.setFill stores an RGB color. Freeform::recolor and split_line mix with the new Color::lerp_keep_model, which vectorcraft_doc::blend::lerp_color now calls. Docs: docs/mcp.md, docs/target-app-parity.md.