pyvista.LookupTable.map_value#
- LookupTable.map_value( ) tuple[float, float, float] | tuple[float, float, float, float] [source]#
Map a single value through the lookup table, returning an RBG(A) color.
- Parameters:
- Returns:
tuple
Mapped RGB(A) color.
Examples
>>> import pyvista as pv >>> lut = pv.LookupTable() >>> rgba_color = lut.map_value(0.0) >>> rgba_color (1.0, 0.0, 0.0, 1.0)