open3d.visualization.gui.Color

class open3d.visualization.gui.Color

Stores color for gui classes

__init__(self: open3d.visualization.gui.Color, r: SupportsFloat = 1.0, g: SupportsFloat = 1.0, b: SupportsFloat = 1.0, a: SupportsFloat = 1.0) None
set_color(self: open3d.visualization.gui.Color, r: SupportsFloat, g: SupportsFloat, b: SupportsFloat, a: SupportsFloat = 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)