Skip to content

aparrish/bezmerizing

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bezmerizing

By Allison Parrish

Bezmerizing is a tiny quirky library with some potentially helpful classes and functions for working with Bezier curve functions, like:

  • Finding points on the curve
  • Calculating tangents
  • Generating curves from lists of points with Catmull-Rom
  • Producing lists of points offset at a certain distance from curve normals

Additionally, the fancy_curve() function generates a polygon that traces "around" a list of Bezier curves, with adjustable thickness along the curve.

Installation

From this repository:

pip install https://github.com/aparrish/bezmerizing/archive/master.zip

The library requires flat (for drawing the curves), and scipy with numpy (for interpolating the "thickness" parameter of the polygon curves).

Usage

See the demo notebook.

Credits

Most of the Bezier math is copy/pasted from p5.js.

License

See LICENSE.

About

a tiny quirky library with some bezier curve functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published