cgv_background: Set Background Color

View source: R/viewer.R

cgv_backgroundR Documentation

Set Background Color

Description

Set the panel background to a solid color or a 4-corner gradient.

Usage

cgv_background(viewer, color)

Arguments

viewer

External pointer returned by cgv_viewer.

color

A single color string (e.g. "#FFFFFF", "white"), or a character vector of 4 colors for corners (top-left, top-right, bottom-left, bottom-right).

Value

No return value, called for side effects: updates the panel's background color on the GPU. Returns NULL invisibly.


cgvR documentation built on May 12, 2026, 1:06 a.m.