Linedef Type 606

From SRB2 Wiki
(Redirected from Colormap)
Jump to: navigation, search
"Colormap" redirects here. For the WAD lump that adjusts the palette for light levels, see Palette.
Colormap. In this setting, the entire sector is flooded with the specified color and intensity.

Linedef Type 606, Colormap, is a type of linedef special which floods the tagged area with a specific color at a desired intensity. This effect is commonly used to give water and other liquids a colored hue when inside them, but is also used for many other visual effects.

Contents

Setup

The color and intensity used is taken from an HTML-like hexadecimal color code, specified in the front side upper texture of the special linedef. The format used for the color codes is #RRGGBBA, where RR, GG, and BB are two hexadecimal digits for determining each color: red, blue, and green, respectively. The A at the end stands for "alpha", and is a number or letter indicating the intensity of the colormap from A-Z, and then 0-9, with A being the most transparent and 9 being the most opaque. Note that the alpha value is not hexadecimal.

This linedef can be used to create fog as well. Setting a color code in the Front Lower texture field will change the "darkness" of the tagged sector, making it fade to the desired color instead of black.

This linedef should be tagged to the sector or sectors that will affected by the colormap. It generally does not matter what sector the special linedef is tagged to, but tagging two colormap specials to one sector is not recommended, as this can cause problems.


Common Colormap Values

For a complete list of colormap values, see Color Codes.
Alarm Floodlight (red) #FF0000Z
Flip-gravity FOF (light blue) #00AAFF0
Laser (red) #FF0000Z
Laser/teleporter (yellow) #FFFF00Z
Lava (orange) #FF7F00Z
Nitric (green) #999999D
Slime (purple) #E000E0S
Water (blue) #40A0FFJ

Sample

Sample 1

Example WAD: Ex_ld606_colormap.wad‎:

Notes

  Linedef Types - Lighting [view]
Floor LightingCeiling LightingAdjustable Pulsating LightAdjustable Flickering LightAdjustable Strobe Flash (Unsynchronized)Adjustable Strobe Flash (Synchronized)Colormap
Personal tools