diff options
author | Leonard Kugis <leonard@kug.is> | 2020-08-22 16:02:17 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2020-08-22 16:02:17 +0200 |
commit | f43f909bf20dafb2c10520815282046cffe495f2 (patch) | |
tree | 5be52b3a048c0b2755a670de4269460353bc9760 /test_bezier.py | |
parent | 3b47fad88c8b714c83c1c90cf6726d85688b300f (diff) |
Refactoring, Bezier
Refactored module layout.
Added missing dependencies to setup.
Added time scaling to curves.
Diffstat (limited to 'test_bezier.py')
-rw-r--r-- | test_bezier.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test_bezier.py b/test_bezier.py new file mode 100644 index 0000000..83694be --- /dev/null +++ b/test_bezier.py @@ -0,0 +1,9 @@ +import matplotlib.pyplot as plot +from CurveBezier import CurveBezier + +curve = CurveBezier([(0,0),(53,178),(5,87),(140,75),(48,647),(37,49)],10) +points = [curve.point(t, 1000) for t in range(0,1000)] +x = [p[0] for p in points] +y = [p[1] for p in points] +plot.scatter(x,y) +plot.show() |