Various parameters let the user set colours for different action routines. Magics offers various ways to specify a colour value:

  • By name - A list of 56 predefined colour names, such as BLUE, RED, RED_ORANGE.
  • By RGB values - The user specifies the colours by their Red-Green-Blue value. Examples: RGB(1.,0.,0.) for red, RGB(1.,0,1.) for purple.
  • By RGBA values - To specify transparency, the user can use a RGBA convention. The convention is from 0 for fully transparent to 1 for opaque. Ex: RGBA(1.,0.,0., 0.5)
  • By RGB Hex values - Similar as above the RGB(A) components are expressed in HTML hex notation. Example: #FF0000 for red.
  • By HSL values - These are three numbers: the first is an angle from 0 to 360 representing Hue, then two numbers from 0 to 1 representing Saturation and Lightness.
  • By HSLA values to add transparency, the user can add an alpha factor, Ex HSLA(180, 0.8, 0.5. 0.8)

The following diagram shows the HSL colour wheel:


However the colours are specified, when Magics generates a colour scale from one colour to another, it internally traverses the HSL wheel either in a clockwise or anti-clockwise direction (this is user-configurable). This is important in order to understand the series of colours produced.

Please be aware that colours might be converted to a different colour space, dependent on the selected (graphical) output format. Magics also supports transparency. Unfortunately, not all output formats (PostScript) support this feature.

The following is a chart showing all available named colours in Magics:


This page contains macros or features from a plugin which requires a valid license.

You will need to contact your administrator.

MAGICS Colours


red

green

blue

yellow

ochre

cyan

magenta

black

avocado

beige

brick

brown

burgundy

charcoal

chestnut

coral

cream

evergreen

gold

grey

khaki

kelly_green

lavender

mustard

navy

olive

peach

pink

rose

rust

sky

tan

tangerine

turquoise

violet

reddish_purple

purple_red

purplish_red

orangish_red

red_orange

reddish_orange

orange

yellowish_orange

orange_yellow

orangish_yellow

greenish_yellow

yellow_green

yellowish_green

bluish_green

blue_green

greenish_blue

purplish_blue

blue_purple

bluish_purple

purple