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. 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.
**How does the user assign the mask?**
- with a button in the gamut masks docker
- In the gamut masks toolbar
- It is done automatically if there is a mask selected, can be toggled on/off somewhere (where?)
**Restoration of selector settings**
The artistic color selector saves it’s color model within the .kra file. The color model is set with the mask upon opening the document, to ensure color consistency.
- Should there be a setting for it somewhere? In the selector?
- How does the user revert the change if she doesn’t like it?
Technical stuff
The mask resource is embedded in the KRA file. While the document is in the current view, it is present in the resource server.
Selector settings are saved in the XML:
- Advanced selector: the wheel stays the same regardless of the color model set, no need to save
- Artistic selector: color model