In traditional media, the artist would create a dedicated premixed palette based on a gamut mask (new or reused) for every artwork.
In Krita, there is no need for a premixed palette, the artist can work straight from the color selector with the mask applied. For that, the artist needs to know which mask was used when last working on a document and it's parameters.
A solution is to assign the gamut mask with the parameters to the document.
**Feature workflow**
The artist assigns currently selected mask to active document with a button in the gamut masks docker. Assigning again with another mask selected changes the mask assigned to the document. The mask can be unlinked from the document.
The mask is reapplied upon opening the document.
When switching view, if the document in the view has a mask assigned, the mask is applied to selectors, if not, the previous mask is disabled in the selector.
**Technical stuff**
The mask and it's parameters need to be either (1) linked to the kra file, or (2) embedded in it.
(1)
- Less bloat in the document, just metadata
- The mask has to be identified by an uuid, which changes upon any edit of the mask shapes. Otherwise the artist ends up
with different colors upon reopening.
- Sharing is harder - the mask has to be exported and shared with the document. On the other artist's installation the mask must not collide with any of their masks.
(2)
- Adds data to the document (<50kB)
- Sharing is straightforward - the mask is in the file and loaded upon opening the document
- The mask needs to be visible for the active document only, but it needs to be editable in the gamut masks docker, etc.