<canvas id=canv1></canvas> fig = new Figure("canv1")
with (fig) { s = square().setFillStyle("yellow").setLineWidth(3)
equal(s.w(), 150) // w = 150 equal(s.x0(), s.w()) // x0 = w equal(s.y0(), times(2, s.h())) // y0 = 2*h