/***********************************************************************
colours v1.01 (31 March 2020)

Copyright 2020 Herman Johannes Haverkort

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This file is part of the pftrail package. 
The package includes the following files:

* pftrail.cpp
* ifs-classics
* ifs-inventions
* generate-preamble.cpp
* colours
* postamble
* manual.pdf

New versions of the package may be available from 
http://spacefillingcurves.net or http://herman.haverkort.net.

************************************************************************

Colour schemes included in this file:

With single-colour trails:
* yellow
* green
* white

With colour-gradient trails:
* reds
* yellows
* greens
* whites
* multicolour (or: multicolor)

With transparent walls:
* transparent

************************************************************************

Colours are specified by five values:
  red, green, blue, emission factor, opacity
The first three values specify the colour from diffuse reflection. 
The emitted colour is the emission factor times the diffuse colour.

For each scheme, five keywords for the different parts of the model are
expected: trail, lowland, highland, walls, and parapets, in this order.
For the trail, multiple colours can be specified, to define a range
of colours that can be interpolated. For the other parts of the model,
only a single colour can be specified.

***********************************************************************/

/**********************************************************************/
scheme yellow

trail    0.80 0.70 0.00 0.00 1.00 ;
lowland  0.80 0.70 0.00 0.00 1.00 ;
highland 0.80 0.70 0.00 0.00 1.00 ;
walls    0.70 0.50 0.00 0.00 1.00 ;
parapets 0.70 0.50 0.00 0.00 1.00 .

/**********************************************************************/
scheme green

trail    0.35 0.65 0.00 0.00 1.00 ;
lowland  0.35 0.65 0.00 0.00 1.00 ;
highland 0.35 0.65 0.00 0.00 1.00 ;
walls    0.35 0.65 0.00 0.00 1.00 ;
parapets 0.35 0.65 0.00 0.00 1.00 .

/**********************************************************************/
scheme white

trail    0.65 0.65 0.65 0.00 1.00 ;
lowland  0.65 0.65 0.65 0.00 1.00 ;
highland 0.65 0.65 0.65 0.00 1.00 ;
walls    0.65 0.65 0.65 0.00 1.00 ;
parapets 1.00 1.00 1.00 1.00 1.00 .

/**********************************************************************/
scheme reds

trail    0.37 0.20 0.00 0.00 1.00 ,
         1.00 0.70 0.00 0.00 1.00 ;

lowland  0.37 0.20 0.00 0.00 1.00 ;
highland 1.00 0.70 0.00 0.00 1.00 ;
walls    0.50 0.20 0.00 0.00 1.00 ;
parapets 0.50 0.20 0.00 0.00 1.00 .

/**********************************************************************/
scheme yellows

trail    0.33 0.24 0.00 0.00 1.00 ,
         0.90 0.80 0.00 0.00 1.00 ;

lowland  0.33 0.24 0.00 0.00 1.00 ;
highland 0.90 0.80 0.00 0.00 1.00 ;
walls    0.66 0.53 0.02 0.00 1.00 ;
parapets 0.66 0.53 0.02 0.00 1.00 .

/**********************************************************************/
scheme greens

trail    0.10 0.20 0.02 0.00 1.00 ,
         0.35 0.65 0.00 0.00 1.00 ;

lowland  0.10 0.20 0.02 0.00 1.00 ;
highland 0.35 0.65 0.00 0.00 1.00 ;
walls    0.35 0.20 0.02 0.00 1.00 ;
parapets 0.35 0.20 0.02 0.00 1.00 .

/**********************************************************************/
scheme whites

trail    1.00 1.00 1.00 0.00 1.00 ,
         0.15 0.15 0.18 0.00 1.00 ;

lowland  1.00 1.00 1.00 0.00 1.00 ;
highland 0.15 0.15 0.18 0.00 1.00 ;
walls    0.45 0.45 0.45 0.00 1.00 ;
parapets 1.00 1.00 1.00 1.00 1.00 .

/**********************************************************************/
scheme multicolour
scheme multicolor

trail    0.75 0.66 0.00 0.00 1.00 ,
         0.80 0.45 0.11 0.00 1.00 ,
         0.87 0.23 0.24 0.00 1.00 ,
         0.93 0.00 0.37 0.00 1.00 ,
         0.51 0.27 0.68 0.00 1.00 ,
         0.00 0.49 0.87 0.00 1.00 ,
         0.00 0.75 0.44 0.00 1.00 ,
         0.00 1.00 0.00 0.00 1.00 ;

lowland  0.75 0.66 0.00 0.00 1.00 ;
highland 0.00 1.00 0.00 0.00 1.00 ;
walls    0.65 0.65 0.65 0.00 1.00 ;
parapets 1.00 1.00 1.00 1.00 1.00 .

/**********************************************************************/
scheme transparent

trail    0.75 0.66 0.00 0.00 1.00 ,
         0.80 0.45 0.11 0.00 1.00 ,
         0.87 0.23 0.24 0.00 1.00 ,
         0.93 0.00 0.37 0.00 1.00 ,
         0.51 0.27 0.68 0.00 1.00 ,
         0.00 0.49 0.87 0.00 1.00 ,
         0.00 0.75 0.44 0.00 1.00 ,
         0.00 1.00 0.00 0.00 1.00 ;

lowland  0.75 0.66 0.00 0.00 1.00 ;
highland 0.00 1.00 0.00 0.00 1.00 ;
walls    0.65 0.65 0.65 0.00 0.30 ;
parapets 1.00 1.00 1.00 1.00 1.00 .

/***********************************************************************
***********************************************************************/
