Romain F. T. rrroschan@gmail.com Manage colors and the way they're applied on the image by a classic tool. Colors and color modes

When you use a classic drawing tool, the options are located at the left of the bottom bar: they include two buttons with two colors.

The color of the left button corresponds to the left click, and is usually labeled "Main color", while the color at the right is the "Secondary color". Click on these buttons to edit their respective colors:

Colors

In the menu, you can select a color directly from the default palette, or from the recently picked custom colors at the bottom.

If the exact color you want isn't listed in the palette (picture at the left), click the + button to use the color editor (picture at the right).

An optional Color Picker tool can also help you to select a color. While the color picker from within the color editor can select a RGB color anywhere on the screen, the Color Picker tool supports translucent colors but only works for pixels from the image.

Color application modes

With compatible tools, you can select at the top of the palette the way the color will be applied to the image:

Normal: the selected color is added over the existing image. If your color is semi-transparent yellow and your image is opaque blue, the resulting pixels would be opaque green.

Highlight: the selected color is added to the lighter pixels only, which highlights dark text on light background. The opposite (highlighting light text on a dark background) is also possible.

The same result can be achieved used the optional Highlighter tool.

HSL modes: these options don't make much sense when you're drawing something, but they can help you when editing photos or illustrations.

The idea is to apply only a dimension from the selected color in the hue-saturation-luminosity representation, and not the other ones.

For example, you can draw with a red hue but not affect the luminosity of the existing pixels; or draw with a light luminosity but not affect the hue of the existing pixels.

Raw source color: the selected color replaces the pixels where it's applied. If your color is semi-transparent yellow, the resulting pixels would be semi-transparent yellow.

Difference: the resulting color is the difference between the selected color and the existing pixels.

Erase: deletes any color where the tool is applied.

The same result can be achieved using the optional Eraser tool.

Not all tools are compatible with these color application modes!