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.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> lut = pv.LookupTable()
>>> rgba_color = lut.map_value(0.0)
>>> rgba_color
(1.0, 0.0, 0.0, 1.0)