Chemical Crystallography

+ Frequently Asked Questions

+ Crystals Primer

+ Crystals User Guide

+ Crystals Manual

- Cameron Manual

1. Introduction

2. How To Get Started

3. Data Input

4. Outputting Data

5. Editing The Atom List

6. Obeying Files

7. Graphical Output Devices

8. View Direction Control

9. Include And Exclude

10. Drawing Style Control

11. Connectivity Control

12. Control Of Colour

13. Atom Labelling

14. Other Picture Controlling Commands

15. Symmetry Input

16. Crystal Packing Commands

17. Add And Move - Further Symmetry Related Commands

18. Distance And Angle Calculations

19. Information On Data Held Within The Program

20. Group Definitions

21. Miscellaneous Commands

22. How To Stop The Program

23. Menu Definition File

24. Some Useful Ideas

+ Index

Fri Jun 2 2000
   

Cameron Manual

Chapter 12: Control Of Colour

12.1: Example


Within CAMERON it is possible to control the colour of each individual atom and bond and also the colour of the labels.
 
COLOUR
This is the header command for colour control - it may be followed by atom/element names if required. The syntax is :-

COLOUR C BLUE N YELLOW ...

 
the atom/elements are entered in pairs together with the colour name. A list of the current colours by using INFO COLOUR. There are two sets of colournames - those for normal colour and those for greyscale either may be used interchangeably as once the colour type is altered the colours are translated accordingly.
COLOUR ALL colour

 
Colours all the atoms the given colour
 
GROUP

This sets the colour of all of the atoms in a given group. The syntax is:-

COLOUR GROUP groupname colourname

 

 
FRAGMENT COLOUR FRAGMENT n col will set the colour of all atoms in the fragment attached to atom n.
 
BACKGROUND Sets the background colour.
 
TEXT Sets the colour of the title and other annotation text.
 
MENUTEXT
 
BUTTON Selects the colours of the text and buttons in menu mode.
 
LABCOLOUR

This sets the colour of the labels and requires a single argument - the name of the new colour.
 
BONDS

Altering the colour of bonds is a more complicated procedure. It is followed by atoms/elements that define the bond and a colourname. These arguments are therefore entered in threes. For example, to make all carbon carbon bonds colour blue and all CU1 to oxygen bonds colour yellow you would use :-

COLOUR BONDS C C BLUE CU1 O YELLOW

 

ALL There is a further sub-command ALL which changes the colour of ALL of the bonds eg :-
COLOUR BONDS ALL PINK

 
makes all bonds colour PINK.
 
GROUP

This sub-command requires arguments in pairs - the group name and the new bond colour :-

COLOUR BONDS GROUP g1 LGREY

 
colours all bonds BETWEEN atoms in group g1 (both atoms in a bond must be in the group for its colour to be altered) to colour LGREY.
 

12.1: Example

To have a picture with the following requirements :-

All C atoms colour BLUE
All N atoms colour PINK
Cu1 colour YELLOW
All Cu1 - O bonds colour LGREY
All bonds between atoms in group g1 colour RED
All other bonds colour GREEN
All labels colour PURPLE

 

the commands would be :-

COLOUR C BLUE N PINK CU1 YELLOW
BONDS ALL RED
(do this first)
BONDS CU1 O LGREY
GROUP g1 GREEN
LABCOLOUR PURPLE

 

 
BACKGROUND

The default background colour is WHITE but this can be changed as required by the COLOUR BACKGROUND colour command.
 
DEFAULT

The default colours for the elements are as defined in the PROP.CMN file -

B - ORANGE
Br,Cl,F,I - LGREEN
C - GREEN
D,H - LGREY
N - BLUE
O - RED
P - PURPLE
S - YELLOW
SI - DGREY

 
These colours can be recovered if altered by using COLOUR DEFAULT which returns ALL atoms to their original colours.
 
NORMAL
 
GSCALE

These sub-commands allow the user to see how the hardcopy greyscale picture will look. COLOUR GSCALE changes the screen colours to the equivalent greyscale colours. The colour names GREYn (n=1,14) can be used to specify colour changes if required as COLOUR N PURPLE makes little sense on a greyscale picture.

      BLACK      BLACK
      BLUE       GREY1
      GREEN      GREY2
      ORANGE     GREY3
      RED        GREY4
      CYAN       GREY5
      MAGENTA    GREY6
      LGREY      GREY7
      GREY       GREY8
      LGREEN     GREY9
      LBLUE      GREY10
      LRED       GREY11
      PINK       GREY12
      PURPLE     GREY13
      YELLOW     GREY14
      WHITE      WHITE