   curColors = defaultPalette
   size = null
   descriptions = []
+  rule = null
   for line in fdlText.split "\n"
    for instruction in line.split ";"
     instruction = instruction.trim()

      null
    else if m = instruction.match(FLD.comment)
      descriptions.push m[1]
    else
      throw new Error "Unexpected instruction: #{instruction}"
  return [pattern, colors, size, descriptions.join("\n")]    

#taken from http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/
getCanvasCursorPosition = (e, canvas) ->

    canvasContainer.appendChild itemImage
    liAnchor.appendChild canvasContainer
    
    descText = document.createTextNode name
    liAnchor.appendChild descText
    @drawPatternOn pattern, colors, itemImage
    
