| |
 |  |  |  | Command |  | Argument |
 | Datatype |  | Default |  | Min |  | Max |  |
 |  | Format: |  | ColorBG | | TopLeft
= Color in top left corner, |  | RGBCOLOR |  |
- |  | - |  | - |  |  | |  |
| | BottomLeft = Color in bottom left corner, |  | RGBCOLOR |
 | TopLeft color |  | - |  | - |  |
 | |  | | | TopRight
= Color in top right corner, |  | RGBCOLOR |  | TopLeft color |
 | - |
 | - |  |  | |
 | | | BottomRight
= Color in bottom right color |  | RGBCOLOR |  | BottomLeft color |
 | - |
 | - |  |  |
 | Python: |
 | ColorBG(topleft,bottomleft=None,topright=None,bottomright=None) |
 |  |  | Menu: |  | View > Color > Background |  |  |  | Related: |
 | Color
, ColorHBo |  |  |  | Required: |
 |  |
 |  |
The ColorBG
command sets up to four background colors, which will be assigned to the four corners of the screen and interpolated in between.
Example 1:
ColorBG Red
Color the entire background red.
Example 2:
ColorBG Blue,White
Show a vertical color gradient, blue at the top and white at the bottom.
Example 3:
ColorBG Blue,Blue,White,White
Show a horizontal color gradient, blue on the left side and white on the right side.
Example 4:
ColorBG Red,Green,Blue,Magenta
Show a color gradient with four different corner colors.
Example 5:
ColorBG Cycle
Hidden feature: show a color cycling rainbow background.
Example macro:
# EXAMPLE ColorBG
Clear
LoadPDB 1crn
Pos Z=20
Style Ribbon
ColorBG Black,Green,Yellow,Magenta
 | | Figure: Result of the example macro above. |
|