Skip to content

canbula/BezierCurves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BezierCurves

Python code to generate 2d Bezier Curves.

Import

from BezierCurve import *

Initialize

bezier_curve = BezierCurve(100) # 100 steps between t=0 and t=1

bezier_curve.add_point(0, 0) # Add points

bezier_curve.add_point(0, 1)

bezier_curve.add_point(1, 0)

Generate Curve

curve = bezier_curve.curve() # Method returns with a numpy array

Get the Points (Optional)

points = bezier_curve.points() # Method returns with a numpy array

Releases

No releases published

Packages

No packages published

Languages