This program combines three raster maps to form a composite RGB map. For each input map layer, the corresponding component from the map's color table is used (e.g. for the red map, the red component is used, and so on). In general, the maps should use a gray-scale color table.


The default number of intensity levels for each component is 32, resulting in a total of 32768 possible colors (equivalent to 15 bits per pixel). If significantly more levels than this are used, not only will r.composite take longer to run, but displaying the resulting layer with d.rast will also be significantly slower.

Floyd-Steinberg dithering is optionally used with the -d flag.


Creating a composite RGB raster using 32 color levels per layer, with dithering:
r.composite -d red=elevation.r green=elevation.g blue=elevation.b output=elev.composite


d.rast, d.rgb, r.blend, r.colors

Wikipedia Entry: Floyd-Steinberg dithering


Glynn Clements

Last changed: $Date$