chiark / gitweb /
can do a bezier curve!
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 18:26:18 +0000 (18:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 18:26:18 +0000 (18:26 +0000)
check.py [new file with mode: 0644]

diff --git a/check.py b/check.py
new file mode 100644 (file)
index 0000000..9d903f7
--- /dev/null
+++ b/check.py
@@ -0,0 +1,12 @@
+from visual import *
+from bezier import BezierSegment
+
+b = BezierSegment([ [0,0,3],
+                    [0,1,4],
+                    [1,1,5],
+                    [1,0,6],
+                    ])
+
+ts = arange(0, 1, 0.1)
+
+curve( pos = [ b.point_at_t(t) for t in ts ] )