X11R6RGB

From ZDoom Wiki
Jump to: navigation, search

The X11R6RGB lump is used to define custom color names for colors. As the name implies, it originates from MiniWikipediaLogoIcon.pngX11R6 and corresponds to the file rgb.txt that was part of it.

The syntax is very simple: a '!' indicates a comment line, whitespace serves as separators, and each color is defined by a triplet of integer values between 0 and 255 followed by an unquoted string up to the end of the line, which is the color name. A name may contain spaces.

Examples

This is the first ten lines of the X11R6RGB lump in zdoom.pk3:

! $XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp $

255 250 250		snow
248 248 255		ghost white
248 248 255		GhostWhite
245 245 245		white smoke
245 245 245		WhiteSmoke
220 220 220		gainsboro
255 250 240		floral white
255 250 240		FloralWhite

The lump in full contains 752 color definitions.

See also