chiark
/
gitweb
/
~ian
/
moebius3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666d65d
)
can do a bezier curve!
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 18:26:18 +0000
(18:26 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 18:26:18 +0000
(18:26 +0000)
check.py
[new file with mode: 0644]
patch
|
blob
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 ] )