[GRASS-git] [OSGeo/grass] 8ab593: d.background: Add module for setting display backg...

Vaclav Petras noreply at github.com
Tue Apr 19 11:30:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8ab593f29df90919d55421f33a44846d20015525
      https://github.com/OSGeo/grass/commit/8ab593f29df90919d55421f33a44846d20015525
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M scripts/Makefile
    A scripts/d.background/Makefile
    A scripts/d.background/d.background.html
    A scripts/d.background/d.background.py
    A scripts/d.background/d_background.png

  Log Message:
  -----------
  d.background: Add module for setting display background color (#2282)

d.background is just a wrapper around a simple d.erase call, but it has a name which is more relevant in the context of setting the background color. In other words, when setting a background color, the first call in the series of commands does not have to be d.erase anymore, but it can be d.background, i.e., you start with d.background, not d.erase.

d.mon wx0 does not support d.erase bgcolor, so d.background does not work either. In the main GUI, d.background works (only) as a command layer (same as for d.erase). In grass.jupyter, d.background removes the need for background parameter or set_background methods which is the original motivation for this module.

The color option is not defined using a standard option because the default is defined for the standard option and d.background cannot have a default color.

Example with an image is included.




More information about the grass-commit mailing list