mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
The reader reads the RGB values of plain colors, gradient stops and type paints as working RGB. Lab colors (plain, in gradient stops and as the full color of a spot stop), type's RGB and Lab fills and strokes in the text document, and the average color written for a freeform gradient, a gradient along a stroke or a gradient that can't be placed were written as display sRGB. With a working RGB space other than sRGB, a reopened file showed different colors. They are now converted into the working RGB space, and type's RGB paints keep their own values. The legacy writer's Lab inks and freeform fills get the same conversion. A Lab color outside sRGB is clipped to sRGB before the conversion, as Cms::from_lab does.