Skip to main content

GaugeZonesRing

A ring made of colored zones, such as the red, amber and green bands of a speedometer.

Inherits: GaugeRing

Properties

  • zones - The zones drawn on this ring.
  • zones_space - The gap between adjacent zones, measured along the arc in logical pixels.

Properties​

zonesinstance-attribute​

zones: list[GaugeZone]

The zones drawn on this ring.

Zones may overlap; a later zone is drawn on top of an earlier one.

Raises:

  • ValueError - If its length is less than 1.

zones_spaceclass-attributeinstance-attribute​

zones_space: Number = 0

The gap between adjacent zones, measured along the arc in logical pixels.

Half of it is taken from each end of every zone. Round GaugeZone.stroke_cap ends extend half the ring width past each end, so the visible gap between rounded zones is about zones_space - width.

Raises:

  • ValueError - If it is not greater than or equal to 0.