beziers.py
----------
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
Raw data
{
"_id": null,
"home_page": "https://github.com/simoncozens/beziers.py",
"name": "beziers",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Simon Cozens",
"author_email": "simon@simon-cozens.org",
"download_url": "https://files.pythonhosted.org/packages/73/68/39b80f38e39b6671166ee54d819073343bd6f4428482e5b83f4ba9f1ccd5/beziers-0.5.0.macosx-12-arm64.tar.gz",
"platform": null,
"description": "beziers.py\n----------\n\nBeziers provides a variety of classes for constructing, manipulating and\ndrawing Bezier curves and paths. Principally designed for font design\nsoftware, it allows you to join, split, offset, and perform many other\noperations on paths.\n\nHere is an example session::\n\n from beziers.point import Point\n from beziers.path import BezierPath\n from beziers.cubicbezier import CubicBezier\n b1 = CubicBezier(\n Point(412.0,500.0), Point(308.0,665.0), Point(163.0,589.0), Point(163.0,504.0)\n )\n b2 = CubicBezier(\n Point(163.0,504.0), Point(163.0,424.0), Point(364.0,321.0), Point(366.0,216.0)\n )\n b3 = CubicBezier(\n Point(366.0,216.0), Point(368.0,94.0), Point(260.0,54.0), Point(124.0,54.0)\n )\n path = BezierPath.fromSegments([b1,b2,b3])\n path.closed = False\n path.addExtremes()\n path.balance()\n path.translate(Point(-100.0,-100.0))\n\n import matplotlib.pyplot as plt\n fig, ax = plt.subplots()\n path.addExtremes()\n path.plot(ax)\n plt.show()\n\nFull documentation is available at https://simoncozens.github.io/beziers.py/index.html\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Bezier curve manipulation library",
"version": "0.5.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "51a43883b96549ffd6124963f13053a6",
"sha256": "e28375a1f4f9b4a6e67e5b661ef664907e9b87177c74b78367336cf53ae95698"
},
"downloads": -1,
"filename": "beziers-0.5.0.macosx-12-arm64.tar.gz",
"has_sig": false,
"md5_digest": "51a43883b96549ffd6124963f13053a6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 76765,
"upload_time": "2022-09-16T11:05:59",
"upload_time_iso_8601": "2022-09-16T11:05:59.694957Z",
"url": "https://files.pythonhosted.org/packages/73/68/39b80f38e39b6671166ee54d819073343bd6f4428482e5b83f4ba9f1ccd5/beziers-0.5.0.macosx-12-arm64.tar.gz",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "249520ad9d05243a64aaf7a3fc7a469a",
"sha256": "05ccfb67ab67797e6c55ac871191b7464abdc5c22f9004ae58735c7ac1ddca2d"
},
"downloads": -1,
"filename": "beziers-0.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "249520ad9d05243a64aaf7a3fc7a469a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 39025,
"upload_time": "2022-09-16T11:05:57",
"upload_time_iso_8601": "2022-09-16T11:05:57.655316Z",
"url": "https://files.pythonhosted.org/packages/ed/18/4d6a77892133b3d91b0d03af5c98ed9aad99ce235230f089502c69724083/beziers-0.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-09-16 11:05:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "simoncozens",
"github_project": "beziers.py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "beziers"
}