Drawing Primitives (rinoh.draw)

class rinoh.draw.Stroke(width, color)

The display properties of a line

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

start : 2-tuple

coordinates for the start point of the line

end : 2-tuple

coordinates for the end point of the line


alias of LineStyle

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

Base class for closed shapes


alias of ShapeStyle

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