cs/Drawing_Graphics_with_Canvas">Mozilla Canvas Samples.</a></h1>

    <div class="sample">
      <widget class="canvas" />
      <pre class="code">
var ctx = gfx;

ctx.noLine()
   .fillColor( color(200,0,0) )
   .rectangle(10, 10, 55, 50)
   .fillColor( color(0, 0, 200, 0.5) )
   .rectangle(30, 30, 55, 50);
      </pre>
    </div>

    <div class="sample">
      <widget class="canvas" />
      <pre class="code">
var ctx = gfx;

ctx.fillColor(color("red"))
   .lineWidth(1)
   .lineColor(color(0,0,0));

var 