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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beziers-0.6.0.tar.gz.
File metadata
- Download URL: beziers-0.6.0.tar.gz
- Upload date:
- Size: 493.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad31133428a7340b0bda539202eb08ed01677acfb51386f7a33418bbcafd7c0
|
|
| MD5 |
19b81ac1360860a962dcc2c706deeca9
|
|
| BLAKE2b-256 |
51bb4a922d0b8f9c834bc7662cc170ba5b804e4fdc7778f3f36085e0b9c8ecc1
|
File details
Details for the file beziers-0.6.0-py3-none-any.whl.
File metadata
- Download URL: beziers-0.6.0-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c7c3a0f726af409f5f84c41943ca8f78ffde935a11370c585e8167e37e41a44
|
|
| MD5 |
c8397ac4d80732935166972b2a72bdde
|
|
| BLAKE2b-256 |
0286374078d437d74227f1058f595d27f657a9de6ab517ec1629e4d32b60ecfb
|