Skip to main content

Bezier curve manipulation library

Project description

Beziers provides a variety of classes for constructing, manipulating and drawing Bezier curves and paths. Principally designed for font design software, it allows you to join, split, offset, and perform many other operations on paths.

Here is an example session:

from beziers.point import Point
from beziers.path import BezierPath
from beziers.cubicbezier import CubicBezier
b1 = CubicBezier(
  Point(412.0,500.0), Point(308.0,665.0), Point(163.0,589.0), Point(163.0,504.0)
b2 = CubicBezier(
  Point(163.0,504.0), Point(163.0,424.0), Point(364.0,321.0), Point(366.0,216.0)
b3 = CubicBezier(
  Point(366.0,216.0), Point(368.0,94.0), Point(260.0,54.0), Point(124.0,54.0)
path = BezierPath.fromSegments([b1,b2,b3])
path.closed = False

import matplotlib.pyplot as plt
fig, ax = plt.subplots()

Full documentation is available at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for beziers, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size beziers-0.1.0-py2.py3-none-any.whl (54.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size beziers-0.1.0.tar.gz (35.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page