Drawing Primitives (rinoh.draw)

class rinoh.draw.Stroke(width, color)

The display properties of a line

Parameters
  • width (Dimension) – the width of the line

  • color (Color) – the color of the line

class rinoh.draw.Line(start, end, style=None, parent=None)

Draws a line

Parameters
  • start (2-tuple) – coordinates for the start point of the line

  • end (2-tuple) – coordinates for the end point of the line

style_class

alias of rinoh.draw.LineStyle

class rinoh.draw.Shape(style=None, parent=None)

Base class for closed shapes

style_class

alias of rinoh.draw.ShapeStyle

class rinoh.draw.Polygon(points, style=None, parent=None)
class rinoh.draw.Rectangle(bottom_left, width, height, style=None, parent=None)