mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 18:25:34 +01:00
Part of #978. The Color Wheel panel menu gets Copy Color As, with Hex, Hex with Alpha, CSS rgb(), CSS hsl(), CSS oklch() and CMYK Values. Each item puts the panel's color on the clipboard as plain text and shows what it copied in the status bar. The opacity that Show Opacity edits goes into Hex with Alpha (ff at 100 %) and, under 100 %, after a slash in the CSS forms. CSS oklch() is gray while the working RGB space is not sRGB. color.format {color, opacity?, notation} answers the text. Hex, the CSS forms and color.parse use the same working RGB numbers, so color.parse reads every form but CMYK back to the same color. CMYK Values converts through the color settings and is written as a new swatch is named (C=0 M=50 Y=100 K=0).