Simple drawing

  • newpath()
  • moveto(x,y)
    moveto([x,y])
    moveto(P)
  • lineto(x,y)
  • stroke(c)
  • fill(c)
  • box(w, h)
  • box(x, y, w, h)
  • bbox(llx, lly, urx, ury)

Simple coordinate changes

  • translate(x,y)
  • center()
  • scale(s)
  • scale(s, t)
  • rotate(a)
    rotate(P, a)
  • atransform(t)

Squares and ...


square0.eps

square1.eps

square2.eps

square3.eps

square4.eps

square5.eps

pentagon.eps