JPRED-2 Add alscript to the Git repository
[jpred.git] / sources / alscript / doc / alscript / section3_12.html
1 <HEAD>
2 <TITLE> Using Colour</TITLE>
3 </HEAD>
4 <BODY><P>
5  <HR> <A NAME=tex2html266 HREF=section3_13.html><IMG ALIGN=MIDDLE SRC="http://geoff.biop.ox.ac.uk/latex2html/next_motif.gif"></A> <A NAME=tex2html264 HREF=alscript.html><IMG ALIGN=MIDDLE SRC="http://geoff.biop.ox.ac.uk/latex2html/up_motif.gif"></A> <A NAME=tex2html258 HREF=subsection3_11_2.html><IMG ALIGN=MIDDLE SRC="http://geoff.biop.ox.ac.uk/latex2html/previous_motif.gif"></A> <A NAME=tex2html268 HREF=tableofcontents3_1.html><IMG ALIGN=MIDDLE SRC="http://geoff.biop.ox.ac.uk/latex2html/contents_motif.gif"></A> <BR>
6 <B> Next:</B> <A NAME=tex2html267 HREF=section3_13.html> The MASK command </A>
7 <B>Up:</B> <A NAME=tex2html265 HREF=alscript.html>No Title</A>
8 <B> Previous:</B> <A NAME=tex2html259 HREF=subsection3_11_2.html> More complex effects </A>
9 <HR> <P>
10 <H1><A NAME=SECTION00012000000000000000> Using Colour</A></H1>
11 <P>
12 Version 1.4 includes commands to allow the independent colouring of
13 characters, or their backgrounds.  Colours are defined in a similar
14 manner to fonts using the DEFINE_COLOUR  command (American spelling also
15 allowed).  For example:
16 <P>
17 DEFINE_COLOUR  7 1 0 0
18 <P>
19 defines colour number 7 to be red - see 
20 <A HREF=subsection3_16_1.html#app1>ALSCRIPT Command Summary</A>
21 for full details of
22 this command.  Colours 99 and 100 are pre-defined to white and black.
23 ALSCRIPT assumes the paper colour is white.
24 <P>
25 The command to colour the text of a character or text string is:
26 <P>
27 CCOL_CHARS 
28 <P>
29 the command to colour the background of a character is
30 <P>
31 SCOL_CHARS 
32 <P>
33 both have similar syntax to the FONT_CHARScommand.
34 <P>
35 COLOUR_REGION  and COLOUR_RES have similar syntax to SHADE_REGION and
36 SHADE_RES.
37 <P>
38 An example command file that uses colour is shown in example3.als.
39 <P>
40 <HR>
41
42 </BODY>
43 <P><ADDRESS>
44 gjb@bioch.ox.ac.uk
45 </ADDRESS>