-
Notifications
You must be signed in to change notification settings - Fork 11
Home
EyeOdin edited this page Mar 27, 2024
·
21 revisions
Pigment.O is a color picker and color managment tool. The color agnostic core allows compatibility between various color spaces regadless of the guiding color space and depth of the active document. This level of color abstraction allows for independant scalability.
After installation the docker will present itself in HSV color space.
And then the interface will be adjustable though the settings header.
- Header : Color display ( Foreground and Background )
- Harmony : Harmony swatch
- Panel : Graphical interface ( Display, Selector, Mixer and Channel )
- Channel : Channels for various color spaces
- Mixer : Mixer for various color spaces
- Pin : Pin color palette
- History : History of color selected
-
Mode : Update cycle mode
- ON : Read=True and Write=True
- WRITE : Read=False and Write=True
- READ : Read=True and Write=False ( for Krita troubleshooting with Log Viewer prints )
- OFF : Read=False and Write=False
-
Options : Various operations
- Fill Pixel : Fill pixels with active color
- Color Selection : Select with the given color range
- Document Analyse : Analyse the document color data
- Label : Display information while editing
- Code : Display numbers ( Hex-code and CMYK sum )
- Settings : Opens the settings dialog
Various options that affect Pigment.O.
- Harmony : Toggle Harmony user interface
- Channel : Toggle Channel user interface
- Mixer : Toggle Mixer user interface
- Pin : Toggle Pin user interface
- History : Toggle History user interface
- Tab Option : General options
- Tab Color : Color options
- Tab System : System options
- Manual : Link to the manual
- License : Link to the license
Pigment.O allows other scripts or plugins to make requests for color transformations or even apply colors into Krita using it's color management process.
Import Pigmento
import krita
pyid = "pykrita_pigment_o_docker"
dockers = Krita.instance().dockers()
for d in dockers:
if d.objectName() == pyid:
pigment_o = d
break
API Commands
kac = pigment_o.API_Request_FG( self )
kbc = pigment_o.API_Request_BG( self )
name = pigment_o.API_Color_Name( self, hex6 )
convert = pigment_o.API_Convert_Color( self, mode, var_1, var_2, var_3, var_4, color )
cor = pigment_o.API_Input_Kelvin( self, kelvin )
cor = pigment_o.API_Input_Preview( self, mode, var_1, var_2, var_3, var_4 )
cor = pigment_o.API_Input_Apply( self, mode, var_1, var_2, var_3, var_4 )
report = pigment_o.API_Image_Analyse( self, qimage )
Input annotation
string hex6 : "#123456"
string mode : "AAA", "RGB", "CMY", "CMYK", "RYB", "YUV", "HSV", "HSL", "HCY", "ARD", "XYZ", "XYY", "LAB", "LCH"
float var_n : range of 0 - 1
dictionary color : Pigment.O color object ( can be requested )
QImage qimage
Pigment.O