chiark / gitweb /
visual: debug arrows better
[moebius3.git] / visual
diff --git a/visual b/visual
index 667ce6ab7894930366d33542118280a01c4ed856..1d1b2cea4e95c028cf2c701a667dc786393610b7 100755 (executable)
--- a/visual
+++ b/visual
@@ -22,6 +22,9 @@ class Visdebug(BaseVisdebug):
     ps = [ fn(t) for t in np.linspace(0,1,11) ]
     #dbg('Visdebug', ps)
     curve(pos = ps, color=colour)
+  def arrow(vd, p, d, **kw):
+    vd.line(p, p+d, **kw)
+    ring(pos=p, axis=d, radius=0.25, thickness=0.005, **kw)
   def crashing(vd, msg):
     print("CRASHING - VISDEBUG", msg, file=sys.stderr)
     rate(1E-8)