pygfx.utils.enums.ColorMode

class pygfx.utils.enums.ColorMode

Bases: Enum

The ColorMode enum specifies how an object’s color is established.

auto = 'auto'

Use either uniform and vertex_map, depending on whether map is set.

uniform = 'uniform'

Use the uniform color (usually material.color).

vertex = 'vertex'

Use the per-vertex color specified in the geometry (usually geometry.colors).

face = 'face'

Use the per-face color specified in the geometry (usually geometry.colors).

vertex_map = 'vertex_map'

Use per-vertex texture coords (geometry.texcoords), and sample these in material.map.

face_map = 'face_map'

Use per-face texture coords (geometry.texcoords), and sample these in material.map.