pygfx.materials.LineThinSegmentMaterial

class pygfx.materials.LineThinSegmentMaterial(thickness=2.0, thickness_space='screen', *, color=(1, 1, 1, 1), color_mode='auto', map=None, map_interpolation='linear', dash_pattern=(), dash_offset=0, aa=True, **kwargs)

Bases: LineMaterial

Thin line segment material.

Simple line segments, drawn with line primitives that has a thickness of one physical pixel. Thickness, dashing, and aa are ignored.

While you typically don’t want to use this 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.