open3d.visualization.rendering.Gradient#

class open3d.visualization.rendering.Gradient#

Manages a gradient for the unlitGradient shader.In gradient mode, the array of points specifies points along the gradient, from 0 to 1 (inclusive). These do need to be evenly spaced.Simple greyscale: [ ( 0.0, black ), ( 1.0, white ) ]Rainbow (note the gaps around green): [ ( 0.000, blue ), ( 0.125, cornflower blue ), ( 0.250, cyan ), ( 0.500, green ), ( 0.750, yellow ), ( 0.875, orange ), ( 1.000, red ) ]The gradient will generate a largish texture, so it should be fairly smooth, but the boundaries may not be exactly as specified due to quantization imposed by the fixed size of the texture. The points must be sorted from the smallest value to the largest. The values must be in the range [0, 1].

class Mode#

Members:

GRADIENT

LUT

GRADIENT = <Mode.GRADIENT: 0>#
LUT = <Mode.LUT: 1>#
property value#
class Point#
__init__(self: open3d.cpu.pybind.visualization.rendering.Gradient.Point, arg0: float, arg1: numpy.ndarray[numpy.float32[4, 1]]) None#
property color#

[R, G, B, A]. Color values must be in [0.0, 1.0]

property value#

Must be within 0.0 and 1.0

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: open3d.cpu.pybind.visualization.rendering.Gradient) -> None

  2. __init__(self: open3d.cpu.pybind.visualization.rendering.Gradient, arg0: List[open3d.cpu.pybind.visualization.rendering.Gradient.Point]) -> None

GRADIENT = <Mode.GRADIENT: 0>#
LUT = <Mode.LUT: 1>#
property mode#
property points#