This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Color(BZW)"

From BZFlagWiki
Jump to: navigation, search
(New page: A color is used in a BZFlag world (BZW) as a sub parameter for many paramters, such as materials and dynamic colors. ==Format== ===RGBA=== The basic form...)
 
(RGBA)
Line 12: Line 12:
 
The numeric values for color can range from 0 to 1 and represent the fraction of 100% for each color channel.
 
The numeric values for color can range from 0 to 1 and represent the fraction of 100% for each color channel.
  
===Pre-defined colors
+
===Pre-defined colors===
 
BZFlag supports a number of pre-defined color names including:
 
BZFlag supports a number of pre-defined color names including:
 
   TODO, ADD THEM.
 
   TODO, ADD THEM.

Revision as of 16:44, 13 May 2007

A color is used in a BZFlag world (BZW) as a sub parameter for many paramters, such as materials and dynamic colors.

Format

RGBA

The basic format of a color is to define the Reg Green Blue and Alpha components of a color in the format

  Reg Green Blue Alpha

As an example to define pure red, the color would be defined as follows:

 1 0 0 1

This would define a color of 100% pure red and 100% opacity.

The numeric values for color can range from 0 to 1 and represent the fraction of 100% for each color channel.

Pre-defined colors

BZFlag supports a number of pre-defined color names including:

 TODO, ADD THEM.

History

Colors were added with Materials in BZFlag 2.0.0.

Editor Support

Color support is dependent on the support for the containing features in any specific editor.