open3d.visualization.gui.Color

class open3d.visualization.gui.Color

Stores color for gui classes

__init__(self: open3d.cpu.pybind.visualization.gui.Color, r: float = 1.0, g: float = 1.0, b: float = 1.0, a: float = 1.0)None
set_color(self: open3d.cpu.pybind.visualization.gui.Color, r: float, g: float, b: float, a: float = 1.0)None

Sets red, green, blue, and alpha channels, (range: [0.0, 1.0])

property alpha

Returns alpha channel in the range [0.0, 1.0] (read-only)

property blue

Returns blue channel in the range [0.0, 1.0] (read-only)

property green

Returns green channel in the range [0.0, 1.0] (read-only)

property red

Returns red channel in the range [0.0, 1.0] (read-only)