Colours.

 

Most colours can be changed by the user at the interactive stage.

 

CPO2D:

Selection of colours

The selection of the colours of rays and contours can be changed at the interactive stage by clicking on Palette and following the instructions.

16 different colours (including black and white) are available. The user chooses a set of N colours from the palette, where N is from 1 to 16. The N colours do not have to be different from each other. If there are more than N rays the program will repeat the selected sequence.

For example, if N = 3 and the first 3 colour numbers are 1, 2 and 3 and there are 7 rays, then their colour numbers will be 1,2,3,1,2,3,1.

 

The colours are numbered as follows:

 0 = Black 1 = Blue 2 = Green

 3 = Cyan 4 = Red 5 = Magenta

 6 = Brown 7 = White (light grey) 8 = Dark grey

 9 = Light blue 10 = Light green 11 = Light cyan

 12 = Light red 13 = Light magenta 14 = Yellow

 15 = White

The composition of these colours cannot be changed by the user.

 

The colours used in a run are those used or selected in the previous run. The default colours can be obtained at any time by clicking Default. (For more advanced use: the 16 colour numbers are kept in positions 1 to 16 of the file colour2d.def -and this file can be edited as an alternative way to define colours).

 

When rays are redrawn (for comparison) during an iterative calculation (for cathodes or space-charge or focus optimisation), they are redrawn in green (colour number 2), so this colour should be avoided for the new rays.

 

 

CPO3D:

Colour options

The default option is for the electrodes to be coloured by the voltage number -that is, they are coloured by the number of the voltage applied to them. But this can be changed so that they are coloured by the electrode number. When an electrode has 2 different voltages applied to it then only the first one is used.

Composition of colours

The composition of the 16 basic colours can be changed via the ‘Edit the palette’ sheet. Information is given in the sheet.

Selection of colours

In the 3D programs the user can select the colours of rays, electrodes and. In the 3D view the user can select white or black for the background colour.

If 3D Axes is called the x, y and z axes are coloured 1, 2 and 3.

16 different colours numbers can be selected. The user chooses a set of N colours from the palette, where N is from 1 to 16. The N colours do not have to be different from each other. If there are more than N rays the program will repeat the selected sequence.

For example, if N = 3 and the first 3 colour numbers are 1, 2 and 3 and there are 7 electrodes, then their colour numbers will be 1,2,3,1,2,3,1.

The selection of colour numbers in the palette is that of the previous simulation, but the default selection can be obtained at any time by clicking Default. (For more advanced use: the 16 colour numbers of the rays and electrodes are kept in positions 1 to 16 and 17 to 32 respectively of the file colour3d.def -and this file can be edited as an alternative way to define colours, or it can be deleted for a fresh start.)

 

When rays are redrawn (for comparison) during an iterative calculation (for cathodes or space-charge or focus optimisation), they are redrawn in green (colour number 2), so this colour should be avoided for the new rays.

 

 

CPO2D and CPO3D:

Using white for an electrode or ray will of course make it invisible (unless the 3D display box is in use with CPO3D and the background is black).

 

During an iterative calculation the previous rays are redrawn (for comparison) in a colour that is chosen by the user (in the ‘other colours’ sheet).