CColorMap: Difference between revisions

From Spring
Jump to navigationJump to search
Yeha (talk | contribs)
No edit summary
Flozi (talk | contribs)
m spelling (Eng-GB colour >_>), grammar, and lua syntax for tags
Line 1: Line 1:
A ColorMap is a collection of 2 or more number of RGBA colors. They can be expressed either as a string of numbers, or pointing to an image file where each pixel will be used as a color.
A '''ColorMap''' is a collection of 2 or more RGBA colours. They can be expressed either as a string of decimal numbers, or pointing to an image file where each pixel will be used as a colour.


Example:
Example:


This gives a colormap with 2 colors, first one blue and second one white:<br>
This gives a '''ColorMap''' with 2 colours, the first one blue and second one white:<br>
<code>colormap=1 0 0 0 1 1 1 0</code>  
<code>colorMap = "1.0 0.0 0.0 0.0 1.0 1.0 1.0 0.0",</code>  


Or it can be pointed to a bitmap file:<br>
Or it can be pointed to a bitmap file:<br>
<code>colormap=bitmap_file.tga</code>
<code>colorMap = "bitmap_file.tga",</code>




Colormaps usually describes how the colors of an entity will shift during its lifetime, where the first color will be used at the beginning and then cycle through all colors untill the last one is use at the end of its lifetime.
'''ColorMaps''' usually describe how the colours of an entity will shift during its lifetime, where the first colour will be used at the beginning and then cycle through all colours until the last one is used at the end of its lifetime.

Revision as of 16:45, 26 August 2012

A ColorMap is a collection of 2 or more RGBA colours. They can be expressed either as a string of decimal numbers, or pointing to an image file where each pixel will be used as a colour.

Example:

This gives a ColorMap with 2 colours, the first one blue and second one white:
colorMap = "1.0 0.0 0.0 0.0 1.0 1.0 1.0 0.0",

Or it can be pointed to a bitmap file:
colorMap = "bitmap_file.tga",


ColorMaps usually describe how the colours of an entity will shift during its lifetime, where the first colour will be used at the beginning and then cycle through all colours until the last one is used at the end of its lifetime.