10.1.6. GraphicStyle

Module to define graphic styles like colours and stroke styles.

This module import Color.Colors.

class Patro.GraphicStyle.CapStyle[source]

Bases: enum.Enum

Enum class to define cap styles

FlatCap = 1

a square line end that does not cover the end point of the line

RoundCap = 3

a rounded line end.

SquareCap = 2

a square line end that covers the end point and extends beyond it by half the line width

class Patro.GraphicStyle.JoinStyle[source]

Bases: enum.Enum

Enum class to define join styles

BevelJoin = 2

The triangular notch between the two lines is filled.

MiterJoin = 1
RoundJoin = 3

A circular arc between the two lines is filled.

SvgMiterJoin = 4

A miter join corresponding to the definition of a miter join in the SVG 1.2 Tiny specification.

class Patro.GraphicStyle.StrokeStyle[source]

Bases: enum.Enum

Enum class to define stroke styles

DashDotDotLine = 6
DashDotLine = 5
DashLine = 3
DotLine = 4
NoPen = 1
SolidLine = 2