color

property DarkTheme.color: tuple

Return or set the default color of meshes in pyvista.

Used for meshes without scalars.

When setting, the value must be either a string, rgb list, or hex color string. For example:

  • color='white'

  • color='w'

  • color=[1, 1, 1]

  • color='#FFFFFF'

Examples

Set the default mesh color to ‘red’.

>>> import pyvista
>>> pyvista.global_theme.color = 'red'