d.background(1grass)
π d.background β the GRASS User's Manual, bestie edition
okay so you opened the manual for d.background (that's the 1grass one, GRASS User's Manual section, iykyk) and honestly? it's a little icon of a module. it does ONE thing and it does it fabulously: it paints your whole display frame whatever color you want. main character energy fr fr. π
β¨ KEYWORDS β¨
display, graphics, background, fill, erase
likeβ¦ the whole vibe is right there in the keywords. no notes. π
πΈ SYNOPSIS πΈ
d.background
d.background --help
d.background color=name [--help] [--verbose] [--quiet] [--ui]
π Flags
--helpβ prints the usage summary, aka "what does this thing do again" but from the computer's own mouth--verboseβ verbose module output, for when you want the module to β¨ overshare β¨--quietβ quiet module output, for when you want it to be mysterious and say nothing--uiβ force launching the GUI dialog, if clicking buttons is more your era
π¦ Parameters
color=name[required] β the background color, bestie. you HAVE to give this one, it's not optional, it's giving mandatory.- either a standard color name or an
R:G:Btriplet
- either a standard color name or an
π DESCRIPTION π
so d.background fills the image (or like, generally, the display monitor) with a single color β the one you picked with the color option. that's it. that's the whole module. one color. all the pixels. slay. π¨
π NOTES π
okay important, no cap: d.background is a frontend to d.erase and it shares its limitations. namely β and this is the part where we hold hands π«Ά β it does not work with the wx monitors, like d.mon wx0. so don't come for it when it doesn't work there, that's just how it is.
π₯ EXAMPLES π₯
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 β which 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). it ate, honestly. π
π SEE ALSO π
d.eraseβ the parent module, the original, the blueprint
π AUTHOR π
Vaclav Petras, NCSU GeoForAll Lab β thank you for your service π«‘π
β SOURCE CODE β
available at: d.background source code (history)
latest change: Friday Feb 07 19:16:09 2025 in commit:
a82a39f673b97fafcfce1604dc3e6015cb96487a
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole page, bestie!! π go forth and fill a frame with #ADEFD1 or whatever your heart desires. this has been GRASS 8.5.0, brought to you by the GRASS Development Team (Β© 2003-2026, iconic behavior, no notes). mwah. πβ¨π¦
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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