Skip to contents

Changes the background color of a ggseg3d widget or ggsegray rgl scene.

Usage

set_background(p, colour = "#ffffff")

Arguments

p

A `ggseg3d` widget or `ggsegray` rgl object.

colour

string. Background color (hex or named color)

Value

The input object (modified), for piping.

Examples

ggseg3d() |> set_background("black")
if (FALSE) { # \dontrun{ # rgl requires OpenGL; not run in check environments. ggsegray(atlas = dk()) |> set_background("black") } # }