 # - copy and paste should use hover target rather than selected character
 # - bug: try noticing mouseOut in the editor and picking up the brush
 # - be able to export an array for lookup of changeable color to use per character
+# - performance: maybe instead of watching mouseMove events, watch for mouseEnter and paint if the button is held down
+# - be able to draw directly on to the macro, so that large assemblies of characters can be edited as if they were a single entity
 
 
 # FEATURES


  constructor: ( @code ) ->
    @canvas = elm 'canvas', width:8*scale, height:8*scale
    @internal_canvas = elm 'canvas', width:8, height:8
    @context = @internal_canvas.getContext '2d'
    @image_data = @context.createImageData  8, 8

  pixel_at: ( row, column ) ->
    [ address, shift, mask ] = @directions_to  row, column

      for x in [0..@width-1]
        @paint x, y, 0

    @view_width = 8
    @view_height = 5
    @view_x = 0
    @view_y = 0
    for row in [0..@view_height-1]
