Skip to content

PiDrawGeometry drawing for teachers

Describe points, lines, circles, polygons and function plots with a short text syntax, and get an SVG that students can move.

A triangle, its circle and its midpoints ​

pidraw
A(0,0)->label=A/bl,drag
B(6,1)->label=B/br,drag
C(2,5)->label=C/tl,drag
t=poly A,B,C->fill=lightblue/0.4
c=circ A,B,C->blue,dash
M=mid A,B->red,label=M/bc
N=mid B,C->red,label=N/mr
P=mid C,A->red,label=P/ml

Drag a vertex: the triangle, the circle and the midpoints follow it, because each line is built on the figures named before it. The option drag is all it takes. See Getting started.

Released under the MIT License.