// cmap.txt
// Color map definitions for Leveller (tm)
// Initial color maps Copyright 1998, 1999 Daylon Graphics Ltd.

// Color maps are used to provide coloration of heightfield
// objects by assigning colors to their data points depending
// on their elevation.

// You can add/change/remove colormaps by editing this file.
// See the end of this file for formatting instructions.

// Note: Changing or removing the default colormaps may
// cause conflicts with the supplied documentation.

// colormapfile_version	1.0
// supplier_colormaps_begin

colormap_begin
	name "Classic Gray"
	desc "Simple blend from black to white"
	colorformat float
	entry 0.0 0 0 0
	entry 1.0 1 1 1
colormap_end

colormap_begin
	name "Spectrum"
	desc "Linear spectrum through RGB color wheel"
	colorformat float
	entry 0.00 0 0 0
	entry 0.16 0 0 1
	entry 0.33 0 1 1
	entry 0.50 0 1 0
	entry 0.66 1 1 0
	entry 0.84 1 0 0
	entry 1.00 1 1 1
colormap_end

colormap_begin
	name "Mars"
	desc "Martian landscape (kind of)"
	colorformat byte
	entry 0.00 200 30 0
	entry 0.15 160 90 0
	entry 0.20 180 90 0
	entry 0.30 200 100 0
	entry 0.40 255 127 90
	entry 0.55 200 100 20
	entry 0.70 150 90 10
	entry 0.90 200 90 0
	entry 1.00 255 150 150
colormap_end

colormap_begin
	name "Earth"
	desc "Earth landscape (kind of)"
	colorformat byte
	entry 0.0 128 128 0
	entry 0.3 40 128 0
	entry 0.5 0 200 0
	entry 0.8 120 150 0
	entry 1.0 255 255 255
colormap_end

colormap_begin
	name "Earth and Water"
	desc "Earth landscape with water"
	colorformat byte
	entry 0.0 0 0 240
	entry 0.05 192 192 0
	entry 0.07 60 128 0
	entry 0.3 40 128 0
	entry 0.5 0 200 0
	entry 0.8 120 150 0
	entry 1.0 255 255 255
colormap_end

colormap_begin
	name "Spectral Stripes (black)"
	desc "RGB spectrum with each band ending in black"
	colorformat float
	entry 0.00 0 0 0
	entry 0.16 0 0 1
	entry 0.17 0 0 0
	entry 0.33 0 1 1
	entry 0.34 0 0 0
	entry 0.50 0 1 0
	entry 0.51 0 0 0
	entry 0.66 1 1 0
	entry 0.67 0 0 0
	entry 0.84 1 0 0
	entry 0.85 0 0 0
	entry 1.00 1 1 1
colormap_end

colormap_begin
	name "Spectral Stripes (white)"
	desc "RGB spectrum with each band ending in white"
	colorformat float
	entry 0.00 1 1 1
	entry 0.16 0 0 0
	entry 0.17 1 1 1
	entry 0.33 0 0 1
	entry 0.34 1 1 1
	entry 0.50 0 1 1
	entry 0.51 1 1 1
	entry 0.66 0 1 0
	entry 0.67 1 1 1
	entry 0.84 1 1 0
	entry 0.85 1 1 1
	entry 1.00 1 0 0
colormap_end

colormap_begin
	name "Spectral Stripes (dark)"
	desc "Striped RGB spectrum"
	colorformat float
	entry 0.00 0 0 .5
	entry 0.16 0 0 1
	entry 0.17 0 .5 .5
	entry 0.33 0 1 1
	entry 0.34 0 .5 0
	entry 0.50 0 1 0
	entry 0.51 .5 .5 0
	entry 0.66 1 1 0
	entry 0.67 .5 0 0
	entry 0.84 1 0 0
	entry 0.85 .5 .5 .5
	entry 1.00 1 1 1
colormap_end

colormap_begin
	name "Spectral Stripes (light)"
	desc "Striped RGB spectrum"
	colorformat float
	entry 0.00 .5 .5 1
	entry 0.08 0 0 1
	entry 0.16 0 0 .5

	entry 0.17 .5 1 1
	entry 0.25 0 1 1
	entry 0.33 0 .5 .5

	entry 0.34 .5 1 .5
	entry 0.42 0 1 0
	entry 0.50 0 .5 0

	entry 0.51 1 1 .5
	entry 0.59 1 1 0
	entry 0.66 .5 .5 0

	entry 0.67 1 .5 .5
	entry 0.75 1 0 0
	entry 0.84 .5 0 0

	entry 0.85 .5 .5 .5 
	entry 1.00 1 1 1
colormap_end

colormap_begin
	name "Contour Lines"
	desc "Thin, evenly-spaced black lines to provide a simulated contour mapping effect"
	colorformat float
	entry 0.00 0 0 0
	entry 0.01 .75 .75 .75
	entry 0.09 .75 .75 .75
	entry 0.10 0 0 0 

	entry 0.11 .75 .75 .75
	entry 0.19 .75 .75 .75
	entry 0.20 0 0 0 

	entry 0.21 .75 .75 .75
	entry 0.29 .75 .75 .75
	entry 0.30 0 0 0 

	entry 0.31 .75 .75 .75
	entry 0.39 .75 .75 .75
	entry 0.40 0 0 0 

	entry 0.41 .75 .75 .75
	entry 0.49 .75 .75 .75
	entry 0.50 0 0 0 

	entry 0.51 .75 .75 .75
	entry 0.59 .75 .75 .75
	entry 0.60 0 0 0 

	entry 0.61 .75 .75 .75
	entry 0.69 .75 .75 .75
	entry 0.70 0 0 0 

	entry 0.71 .75 .75 .75
	entry 0.79 .75 .75 .75
	entry 0.80 0 0 0 

	entry 0.81 .75 .75 .75
	entry 0.89 .75 .75 .75
	entry 0.90 0 0 0 

	entry 0.91 .75 .75 .75
	entry 0.99 .75 .75 .75
	entry 1.00 0 0 0 

colormap_end


colormap_begin
	name "Aqua Velva"
	desc "Blue and black with a touch of green"
	colorformat float
	entry 0.0 0 0 0
	entry 0.33 0 .5 1
	entry 0.5 0 .25 1
	entry 0.75 .25 .15 1
	entry 1.0 .5 .5 1
colormap_end


colormap_begin
	name "Desert Soil"
	desc ""
	colorformat float
	entry 0.0 .4 .4 .1
	entry 0.2 .6 .6 .11
	entry 0.5 .8 .8 .2
	entry 0.75 .7 .6 .1
	entry 1.0 .9 1 .3
colormap_end

colormap_begin
	name "High Altitude"
	desc "Mostly snow everywhere"
	colorformat float
	entry 0.0 .5 .5 0
	entry 0.2 0 .5 0
	entry 0.33 .8 .82 .75
	entry 0.6 .9 .85 .85
	entry 0.7 1 1 1
	entry 1.0 1 1 1
colormap_end

colormap_begin
	name "Alpine Summer"
	desc "Grassy mountains with snowy peaks"
	colorformat float
	entry 0.0 .5 .5 0
	entry 0.2 0 .5 0
	entry 0.33 0 .75 .1
	entry 0.6 .4 .35 .02
	entry 0.67 .4 .6 .4
	entry 0.7 .9 .92 .9
	entry 1.0 1 1 1
colormap_end


colormap_begin
	name "Desert Soil (Damp)"
	desc ""
	colorformat float
	entry 0.0 .3 .3 0
	entry 0.2 .5 .5 0
	entry 0.5 .7 .7 0
	entry 0.75 .6 .5 0
	entry 1.0 .8 .9 0
colormap_end


colormap_begin
	name "Contour Lines (Loose Spectral)"
	desc "A few contour mapping lines on a distributed RGB spectrum"
	colorformat float
	entry 0.00 0 0 0
	entry 0.15 0 0 1
	entry 0.16 1 1 1 

	entry 0.17 0 0 1
	entry 0.32 0 1 1
	entry 0.33 0 0 0 

	entry 0.34 0 1 1
	entry 0.49 0 1 0
	entry 0.50 0 0 0 

	entry 0.51 0 1 0
	entry 0.65 1 1 0
	entry 0.66 0 0 0 

	entry 0.67 1 1 0
	entry 0.83 1 0 0
	entry 0.84 0 0 0 

	entry 0.85 1 0 0
	entry 0.99 1 1 1

	entry 1.00 0 0 0 

colormap_end

colormap_begin
	name "Contour Lines (Dense Spectral)"
	desc "More contour mapping lines on a distributed RGB spectrum"
	colorformat float

	entry 0.00 0 0 0
	entry 0.07 0 0 .5
	entry 0.08 1 1 1 

	entry 0.09 0 0 .5
	entry 0.15 0 0 1
	entry 0.16 1 1 1 

	entry 0.17 0 0 1
	entry 0.23 0 .5 1
	entry 0.24 0 0 0 

	entry 0.25 0 .5 1
	entry 0.32 0 1 1
	entry 0.33 0 0 0 

	entry 0.34 0 1 1
	entry 0.41 0 1 .5
	entry 0.42 0 0 0 

	entry 0.43 0 1 .5
	entry 0.49 0 1 0
	entry 0.50 0 0 0 

	entry 0.51 0 1 0
	entry 0.57 .5 1 0
	entry 0.58 0 0 0 

	entry 0.59 .5 1 0
	entry 0.65 1 1 0
	entry 0.66 0 0 0 

	entry 0.67 1 1 0
	entry 0.74 1 .5 0
	entry 0.75 0 0 0 

	entry 0.76 1 .5 0
	entry 0.83 1 0 0
	entry 0.84 0 0 0 

	entry 0.85 1 0 0
	entry 0.92 1 .5 .5
	entry 0.93 0 0 0 

	entry 0.94 1 .5 .5
	entry 0.99 1 1 1

	entry 1.00 0 0 0 

colormap_end


colormap_begin
	name "Hell"
	desc "Dominating dark reds"
	colorformat float
	entry 0.0 0 0 0
	entry 0.33 .75 0 0
	entry 0.5 .5 .1 0
	entry 0.75 .75 0 0
	entry 1.0 1 .5 .5
colormap_end

// supplier_colormaps_end

// ---------------------------------------------------------

// Additional color maps should be placed in CMAPSUSR.TXT.

// Leveller will list colormaps alphabetically by name.
// The default color map is called ' App Default', with 
// a space in front, to make it appear at the top of
// the selection list. For convenience, you may want to 
// preserve this behavior by not naming other color maps
// to appear above the default map.


// COLOR MAP FILE FORMAT:

// Comments start with '//' and are ignored by Leveller.
// Some comments such as '// supplier_colormaps_begin'
// are included by the vendor and should not be changed
// or removed.

// Valid keyword and argument separators are whitespace
// and the comma (,) symbol. The following statements
// are syntactically equal:

//     entry 0.75   255, 128, 27
//     entry 0.75,  255  128  27
//     entry 0.75 255 128 27
//     entry 0.75,255,128,27

// Statements occupy one line and cannot span multiple lines.
// This includes comments, e.g. 'entry 0.5, 1 1 1 // white'
// is invalid. A statement's interpretation ends at its
// last keyword argument, so end-of-line comments may work.


// KEYWORD DEFINITIONS:


//     colorformat byte | float

//  The 'colorformat' keyword can be used anywhere. Subsequent
//  color definitions will use the color format until the next
//  use of 'colorformat'. 'colorformat byte' will cause color
//  channel values to be interpreted in a 0...255 range, while
//  'colormap float' will use a 0...1 range.


//     colormap_begin

//  This starts the definition of a new color map.
//  You can define as many color maps as memory will allow.
//  The speed at which the Color Map dialog comes up
//  depends on how many maps are defined. The speed for
//  browsing the maps (after loading) is unaffected.


//     colormap_end

//  This ends the definition of a color map. The 
//  remaining keywords must be used within the scope
//  of colormap_begin ... colormap_end.


//     name string

//  Defines the color map's name as it appears to
//  the user. It is preferable to assign a unique
//  name to each map. All the characters between
//  the first two double-quote marks will be used.
//  There is currently no support for including the
//  quote mark symbol or other symbols in <string>.
//    Names must be defined and contain at least
//  one character. Names over 63 chars may be
//  truncated.


//     desc string

//  Defines an optional description of the color map.
//  Leveller displays this string below the map
//  selection list in the Color Map dialog.
//    Descriptions over 255 chars may be truncated.


//      entry pos color

//  Adds a color to the color map. <pos> is a position
//  from 0 ... 1 where 0 is the lowest heightfield
//  elevation and 1 is the highest. Each entry must
//  have a unique <pos> value. Up to fifty entries
//  can be defined per map.
//    <color> is a three-number value indicating
//  the color's red, green, and blue components,
//  respectively. If the current color format (see
//  the 'colorformat' keyword) is 'byte', the channel
//  values are interpreted as being in a 0 ... 255 range,
//  0 ... 1 otherwise.
//    The first entry must have a <pos> of zero, and
//  the last must have a <pos> of 1.0. Entries must also
//  be declared in ascending positional order.

