diff options
author | Leonard Kugis <leonard@kug.is> | 2020-08-22 00:01:11 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2020-08-22 00:01:11 +0200 |
commit | a4a32e491de5ad56f3d01ed713202ae378e2672a (patch) | |
tree | a722403dc6ec18250bda74a223a1180a4d178570 /AutopyExtended/Curve/test1.py | |
parent | 10df6080647e5904a6c03b497586a554b1985a99 (diff) |
CurveBezier
Fixed bezier curve
Diffstat (limited to 'AutopyExtended/Curve/test1.py')
-rw-r--r-- | AutopyExtended/Curve/test1.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/AutopyExtended/Curve/test1.py b/AutopyExtended/Curve/test1.py new file mode 100644 index 0000000..05f56d8 --- /dev/null +++ b/AutopyExtended/Curve/test1.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)],1000) +points = [curve.point(t) 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() |