d.background(1)
π d.background β the GRASS GIS bestie that paints your whole display π
okay so this is d.background(1) from the GRASS GIS User's Manual, and it's literally the glow-up button for your display frame. let's get into it π«Ά
β¨ NAME β¨
d.background β fills the graphics display frame with a user defined color. that's it. that's the whole job. and she slays at it π
π·οΈ KEYWORDS π·οΈ
display, graphics, background, fill, erase
πΈ SYNOPSIS πΈ
d.background
d.background --help
d.background color=name [--help] [--verbose] [--quiet] [--ui]
π Flags π
--helpβ prints the usage summary, aka the lil cheat sheet--verboseβ verbose module output, she's chatty and we love that--quietβ quiet module output, she's giving mysterious and silent--uiβ force launching the GUI dialog, for when you want the fancy window version
π¦ Parameters π¦
color=nameβ required, bestie, no skipping this one- Background color
- either a standard color name or an
R:G:Btriplet. yes, both. pick your fighter β
π DESCRIPTION π
d.background will fill the image (or like, generally your display monitor) with a single color specified by the color option. one color. the whole thing. iconic behavior honestly.
β οΈ NOTES β οΈ
ok so important β d.background is a frontend to d.erase and it shares its limitations. namely, it does not work with the wx monitors such as d.mon wx0.
π¨ fr fr, if you're on a wx monitor this thing is not gonna do anything for you. no cap.
π EXAMPLES π
so in this example, the streets_wake map from the North Carolina sample dataset is displayed with a custom background color (specified using an HTML hex color code) using the cairo display monitor β and that creates a file called map.png:
g.region vector=streets_wake
d.mon cairo
d.background color=#ADEFD1
d.vect map=streets_wake color=#00203F legend_label="Streets"
d.legend.vect -b at=70,30 title="Wake County"
Figure: Wake County street network with custom background color (North Carolina sample dataset)
the way that #ADEFD1 mint background hits with #00203F navy streets?? chef's kiss π§
π SEE ALSO π
d.erase
π AUTHOR π
Vaclav Petras, NCSU GeoForAll Lab β thank you for your service king π«‘
π» SOURCE CODE π»
Available at: d.background source code (history)
Accessed: Saturday Jan 17 05:41:51 2026
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
and that's the whole vibe check, bestie β¨ this was GRASS GIS 8.4.2 Reference Manual energy, running under GRASS 8.4.2, with the copyright reading Β© 2003-2025 GRASS Development Team β go paint something cute, you got this ππΈπ¦π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms