pygfx.materials.LineThinMaterial

class pygfx.materials.LineThinMaterial(color=(1, 1, 1, 1), thickness=2.0, color_mode='auto', map=None, map_interpolation='linear', aa=True, **kwargs)

Bases: LineMaterial

Thin line material.

A simple line, drawn with line_strip primitives that has a thickness of one physical pixel (the thickness property is ignored).

While you probably don’t want to use this property in your application (its width is inconsistent and looks very thin on HiDPI monitors), it can be useful for debugging as it is more performant than other line materials.

Examples