module documentation
Utility classes for drawing routines.
Class |
|
Class representing a bounding box (a rectangular area) that encloses some objects. |
Class |
|
Fake module that raises an exception for everything |
Class |
|
Class representing a point on the 2D plane. |
Class |
|
Class representing a rectangle. |
Function | evaluate |
Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points (x1,y1) and (x2,y2) with parameter t. |
Function | find |
Tries to import the cairo Python module if it is installed, also trying cairocffi (a drop-in replacement of cairo). Returns a fake module if everything fails. |
Function | find |
Tries to import the matplotlib Python module if it is installed. Returns a fake module if everything fails. |
Function | get |
Helper function that calculates the Bezier control points for a curved edge that goes from (x1, y1) to (x2, y2). |
def evaluate_cubic_bezier_curve(x0, y0, x1, y1, x2, y2, x3, y3, t):
Evaluates the Bezier curve from point (x0,y0) to (x3,y3) via control points (x1,y1) and (x2,y2) with parameter t.
def find_cairo():
Tries to import the cairo Python module if it is installed, also trying cairocffi (a drop-in replacement of cairo). Returns a fake module if everything fails.