Skip to main content

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
path.addExtremes()
path.balance()
path.translate(Point(-100.0,-100.0))

import matplotlib.pyplot as plt
fig, ax = plt.subplots()
path.addExtremes()
path.plot(ax)
plt.show()

Full documentation is available at https://simoncozens.github.io/beziers.py/index.html

Metadata

Release files for beziers 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beziers 0.6.0
File Size Uploaded
beziers-0.6.0.tar.gz 493.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beziers 0.6.0
File Interpreter ABI Platform
beziers-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 534.7 kB

Release files / beziers-0.6.0.tar.gz

Download URL beziers-0.6.0.tar.gz
Size 493.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8ad31133428a7340b0bda539202eb08ed01677acfb51386f7a33418bbcafd7c0
BLAKE2b-256 checksum
How to use checksums
51bb4a922d0b8f9c834bc7662cc170ba5b804e4fdc7778f3f36085e0b9c8ecc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.18

Release files / beziers-0.6.0-py3-none-any.whl

Download URL beziers-0.6.0-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c7c3a0f726af409f5f84c41943ca8f78ffde935a11370c585e8167e37e41a44
BLAKE2b-256 checksum
How to use checksums
0286374078d437d74227f1058f595d27f657a9de6ab517ec1629e4d32b60ecfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

3 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page