           when "d","l","p" then hue = 4
           when "h","j" then hue = 5
           when "x" then hue = 6
-        @hex_draw.fill_hex_ab("canvas",col,row,hue) unless (row==10 && col%2==1)
+        @hex_draw.fill_hex_ab(col,row,hue) unless (row==10 && col%2==1)
 
 
 

    @piece_mask_context = @img.getContext('2d')


  # FIXME This switches odd/even for pieces with the anchor hex in an even
  #       numbered column, putting the hexes for odd numbered columns higher
  #       than the even numbered columns.
  draw_pattern: () ->
    @img.width = @piece.box.width
    @img.height = @piece.box.height
    @hexes = @piece.hexes
    @hex_draw.set_context("piece_mask")
    for hx in @hexes
      aa = hx[0] - @piece.box.anchor_hex[0] + 1
      bb = hx[1] - @piece.box.anchor_hex[1] + 1
      @hex_draw.fill_hex_ab_xy(aa,bb,6,9,3)



## FIXME Saving this method from a discontinued class as an example because the redraw works correctly.

      if b < top
        top = b
        hx_top = bb
        high_hex_col = aa
      if b > bottom
        bottom = b
        hx_bottom = bb
        low_hex_col = aa

    @anchor_hex = [left,hx_top]

    cols = right - left + 1
    halves = (bottom - top)/5 + 2
