Drawing commands
Here are all the drawing commands:
draw(A [, f [, x]])
Draws point A with a shape corresponding to f and a scaling ratio x (default:
1). Permitted values of f are dot, disc,
box, cross and plus (default:
dot). The scaling ratio has no effect with xeukleides.
draw(u, A [, f])
Draws vector u from point A. If f is given, it overrides the current drawing
style. Permitted values of f are full, dashed and
dotted.
draw(l [, f [, f']])
Draws line l. If f is given, it overrides the current drawing style. Permitted
values of f are full, dashed and dotted.
Permitted values of f' are entire, halfline and
backhalfline (default: entire).
draw(s [, f [, f']])
Draws segment s. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted. Permitted values of f' are noarrow,
arrow, backarrow and doublearrow
(default: noarrow).
draw(c [, f])
Draws circle c. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted.
draw(c, a, a', [, f [, f']])
Draws an arc of circle c from point of argument a to point of argument a'. If f
is given, it overrides the current drawing style. Permitted values of f are
full, dashed and dotted. Permitted
values of f' are noarrow, arrow,
backarrow and doublearrow (default:
noarrow).
draw(cc [, f])
Draws conic curve cc. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted.
draw(cc, x, y [, f])
Draws an arc of conic curve cc. Number x is the argument of the start point (in
respect of the internal parametric representation of cc), number y is the
argument of the end point. If f is given, it overrides the current drawing
style. Permitted values of f are full, dashed and
dotted.
draw(A, B, C, [, f])
Draws triangle ABC. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted.
draw(A, B, C, D [, f])
Draws quadrilateral ABCD. If f is given, it overrides the current drawing
style. Permitted values of f are full, dashed and
dotted.
draw(A, B, C, D, E, [, f])
Draws pentagon ABCDE. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted.
draw(A, B, C, D, E, F [, f])
Draws hexagon ABCDEF. If f is given, it overrides the current drawing style.
Permitted values of f are full, dashed and
dotted.
draw(str, A, [ x, ] a)
Prints the text contained in str at a distance x (default: 0.3) and with
argument a in respect of point A.
draw(str, s, [ x, ] a)
Prints the text contained in str at a distance x (default: 0.3) and with
argument a in respect of the midpoint of segment s.
draw(x, [str, ] A, [ y, ] a)
Prints the value of x optionally formated with str (using the C language
syntax) at a distance y (default: 0.3) and with argument a in respect of
point A.
draw(x, [str, ] s, [ y, ] a)
Prints the value of x optionally formated with str (using the C language
syntax) at a distance y (default: 0.3) and with argument a in respect of
the midpoint of segment s.
draw(x, x', str, A, [ y,] a)
Prints the values of x and x' formated with str (using the C language syntax)
at a distance y (default: 0.3) and with argument a in respect of point A.
draw(x, x', str, s, [ y,] a)
Prints the values of x and x' formated with str (using the C language syntax)
at a distance y (default: 0.3) and with argument a in respect of the
midpoint of segment s.
label(A, [ x, ] a)
Prints the name of variable A at a distance x (default: 0.3) and with argument
a in respect of point A.
mark(s [, f [, x]])
Marks the segment s with a symbol corresponding to f and a scaling ratio x
(default: 1). Permitted values of f are simple,
double, triple and cross (default:
simple).
mark(A, B, C [, f [, x]])
Marks the angle under ABC with a symbol corresponding to f and a scaling ratio x
(default: 1). Permitted values of f are simple,
double, triple, dashed (which yields a
curved angle mark with a dash), right, dot (which
yields a curved angle mark with a centered dot),dotted (which
yields a right angle mark with a centered dot), arrow and
backarrow (default: simple).