Skip to content

Reference of the keys ​

This table is made from the parser of the library when the site is built: it lists every key, the forms a line can take and what the key makes. The pages of the guide explain each figure with examples.

A value between <> is a kind of value, ? or [] mark what can be left out, and a last * chooses the alternative form of the construction.

KeyFormsWhat it makes
pt
A(3,4)
Create a point
vpt
A=vpt <point>,<point>,<scale?>,<starting point?>
Create a point from a vector defined by two points and a starting point
dpt
A=dpt <point>,<line>,<distance>,<perpendicular?>
Create a point from a line and a starting point
mid
A=mid <point>,<point>
Create the middle of two points
proj
A=proj <point>,<line>
Create the projection of a point on a line
inter
A=inter <line|circle>,<line|circle>
Create the intersection of two lines
sym
A=sym <point>,<point|line>
Create the symmetry of a point
eval
A=eval f,3
Create the point of a function at a value
line
d=AB
d=line <point>,<point>
d=line <point>,<slope>
d=line <equation>
Create a line through two points, through a point with a slope, or from its equation
vec
v=vAB
v=vec <point>,<point>
Create a vector: a segment with an arrow at its end
seg
s=AB.
s=[AB]
s=seg <point>,<point>
Create a segment through two points
ray
r=AB[
r=[AB[
r=[AB
r=ray <point>,<point>
Create a ray: it starts at the first point and goes through the second
perp
d=perp <line>,<point>
Create the perpendicular of a line from a point
para
d=para <line>,<point>
Create a parallel line from a point
med
d=med <point>,<point>
Create the mediator of two points
tan
d=tan <circle|plot>,<point>
Create a tangent line from a <circle|plot> by a Point
bis
d=bis <point>,<point>,<point>
d=bis <line>,<line>[,*]
Create the bisector of an angle (three points), or of two lines or axes (a last * for the other bisector)
circ
c=circ <point>,<radius>
c=circ <point>,<line>
c=circ <point>,<point>,<point>[,*]
c=circ <point>:<point>
Create a circle: from its center and its radius (a number, a point or A:B), from three points (a last * for the inscribed circle), from a center and a tangent line, or from a diameter A:B
arc
a=arc <point>,<point>,<point>[,<radius>][,*]
a=arc <point>,<number>,<number>,<number>[,*]
a=arc <point>,<point>,<number>[,<radius>][,*]
Create an arc: the angle BAC from three points, a center with a radius and two angles, or a point turned around a center by an angle (a last * for the other arc)
plot
f(x)=<function>[@<number>,<domain>,<image>]
f=plot <function>[@<number>,<domain>,<image>]
f=plot <point>,<point>,<point>[@<number>,<domain>,<image>]
Plot a function, or the parabola through three points (a line if they are aligned)
parametric
f(t)=<function_x>,<function_y>[,<domain>][@<number>]
f=parametric <function_x>,<function_y>[,<domain>][,@<number>]
Plot a parametric function
bezier
b=bezier <point>[/<H|V|S|angle>[/<ratio>]],...
b=bezier <point>,<point>,<point>[,<point>],*
Create a Bézier curve: the smooth curve through points (a direction and a ratio at each one), or, with a last *, the curve pulled by 3 or 4 control points
poly
p=poly <point>,<point>,<point>,...
p=poly <point>,<radius>,<sides>[,<step>]
p=poly <point>,<point>,<sides>[,<step>]
Create a polygon: through points, or a regular polygon (and a regular star polygon with a last step) from a center and a radius, or from a side
follow
t=follow <figure>[,<point>][,*]
Create a point that follows the mouse along a line, a circle or a curve (a last * draws the tangent too)
fill
z=fill <plot>[,<plot>][,<domain>]
Fill the area between two plots, or between a plot and the x axis
path
p=path M 0,0 L 2,1 Q 3,3 4,0 Z
Draw an SVG path, written in units of the coordinate system
grid
g=grid [<x interval>,<y interval>][,<step>]
Draw a grid: on the whole drawing, or on a part of it. It does not change the grid of the graph
axis
a=axis <point>,<point>[,<step>]
Draw a graduated line through two points: the first is its zero, the second its unit. It does not change the axes of the graph
riemann
r=riemann <plot>[,<domain>][,<rectangles>][,<position>]
Create the Riemann sum of a plot: rectangles from the x axis to its graph

Released under the MIT License.