Package visgraph :: Package drawing :: Module bezier
[hide private]
[frames] | no frames]

Module bezier

source code

Functions [hide private]
 
splitline(pt1, pt2, percent=0.5)
Return a point which splits the given line at the given percentage...
source code
 
calculate_bezier(points, steps=30)
Arbitrary depth and arbitrary precision bezier implementation.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

splitline(pt1, pt2, percent=0.5)

source code 

Return a point which splits the given line at the given percentage...

Example: splitline( (0,0), (20, 30), 0.1)

calculate_bezier(points, steps=30)

source code 

Arbitrary depth and arbitrary precision bezier implementation. Takes a list of (x,y) point tuples and returnes the points to draw for the bezier curve.