Color

New in v0.45.

This set of effects manipulates the colors of an object or Gruppo of objects. The effects are implemented through a set of Python scripts (located in the directory share/inkscape/extensions). The use of Python scripts is a temporary measure until the capability is incorporated natively into Inkscape. The color mapping is calculated in the RGB color space except for the effects that modify HSL values, which are calculated in HSL color space.

If no objects are selected, the color change will be applied to the entire drawing. An object's Contorno and any Gradiente are also changed.

Desaturate

Desaturate the color of an object or Gruppo of objects. This sets the values of R, G, and B to the average of the maximum of R, G, and B; and the minimum of R, G, and B. For example, R would be set to (max( R, G, B ) + min( R, G, B ))/2.

Color Desaturate example.
Left: Original colors. Right: Colors after applying the Color Desaturate effect.

Brighter

Brighten the color of an object or Gruppo of objects. This effect has the property of making dark colors more intense but washing out light colors.

Color Brighter example.
Left: Original colors. Right: Colors after applying the Color Brighter effect.

Custom

This effect allows color custom transformation functions to be defined. Standard math operations are allowed such as +, −, ×, and /. If a a resulting value is outside the allowed limits, it is set at the minimum or maximum allowed value.

Custom Color Effect Dialog.
Custom Color Effect dialog set to reduce R (red) to one half.
Color Custom example.
Left: Original colors. Right: Colors after applying the Color Custom effect with the specification that R should be divided by 2.

Darker

Darken the color of an object or Gruppo of objects. Each R, G, and B component of a color is set to 90% of its previous value.

Color Darker example.
Left: Original colors. Right: Colors after applying the Color Darker effect.

Grayscale

Change the color to a gray using the formula for Luminance used by the NTSC and PAL television standards. This sets the color to a luminosità (Y) defined by: Y = 0.229 × R + 0.587; × G + 0.114 × B. See the Wikipedia entry for YUV for further information.

Color Grayscale example.
Left: Original colors. Right: Colors after applying the Color Grayscale effect.

Less Hue

Decrease the hue (see la sezione chiamata «HSL») of a color. The hue is decreased by 5% (of the full hue range) or equivalently, a rotation of 18° around the color circle. This, for example, means that a pure red picks up a touch of blue in the RGB color space.

Color LessHue example.
Left: Original colors. Right: Colors after applying the Color Less Hue effect.

Less Light

Decrease the lightness (see la sezione chiamata «HSL») of a color. The lightness is decreased by 5% (of the full lightness range). If the lightness is already less than 5%, it is set to 0%.

Color LessLight example.
Left: Original colors. Right: Colors after applying the Color Less Light effect.

Less Saturation

Decrease the saturation (see la sezione chiamata «HSL») of a color. The saturation is decreased by 5% (of the full saturation range). If the saturation is already less than 5%, it is set to 0%.

Color LessSaturation example.
Left: Original colors. Right: Colors after applying the Color Less Saturation effect.

More Hue

Increase the hue (see la sezione chiamata «HSL») of a color. The hue is increased by 5% (of the full hue range) or equivalently, a rotation of 18 degrees, around the color circle. This, for example, means that a pure red picks up a touch of green in the RGB color space.

Color MoreHue example.
Left: Original colors. Right: Colors after applying the Color More Hue effect.

More Light

Increase the lightness (see la sezione chiamata «HSL») of a color. The lightness is increased by 5% (of the full lightness range). If the lightness is already more than 95%, it is set to 100%.

Color MoreLight example.
Left: Original colors. Right: Colors after applying the Color More Light effect.

More Saturation

Increase the saturation (see la sezione chiamata «HSL») of a color. The saturation is increased by 5% (of the full saturation range). If the saturation is already more than 95%, it is set to 100%.

Color MoreSaturation example.
Left: Original colors. Right: Colors after applying the Color More Saturation effect.

Negative

Invert the color. For example, an R value of 64 (25%) becomes an R value of 191 (255−64, or 75%).

Color Negative example.
Left: Original colors. Right: Colors after applying the Color Negative effect.

Randomize

New in v0.46

Randomize the color of selected objects or all objects if no object is selected. One can choose which of the HSL color parameters to randomize (hue, saturation, and/or lightness).

Color Randomize example.
A grid of gray squares after randomizing their colors. Left: Randomizing hue, saturation, and lightness. Right: Randomizing only lightness.

Remove Blue

Set the B value in RGB to 0.

Color Remove Blue example.
Left: Original colors. Right: Colors after applying the Color Remove Blue effect.

Remove Red

Set the R value in RGB to 0.

Color Remove Red example.
Left: Original colors. Right: Colors after applying the Color Remove Red effect.

Remove Green

Set the G value in RGB to 0.

Color Remove Green example.
Left: Original colors. Right: Colors after applying the Color Remove Green effect.

Replace

New in v0.46

Replace a color among selected objects or all objects if no object is selected. Color are specified in RRGGBB esadecimale form. Color to be replaced must match exactly.