   description: 'Draws received drawing commands'
   icon: 'pencil-square'
   constructor: ->
+    @canvas = null
     @context = null
     @commands = []
     
     @inPorts =
       tick: new noflo.Port 'number'
-      context: new noflo.Port 'object'
+      canvas: new noflo.Port 'object'
       commands: new noflo.ArrayPort 'object'
 
     @inPorts.tick.on 'data', (tick) =>

        loglevel: 'error'
        message: 'Received commands but there\'s any 2d context attached.'

    @inPorts.context.on 'data', (context) =>
      @context = context
      
    @inPorts.commands.on 'data', (commands, i) =>
      @commands[i] = commands

    if rectangle
      @context.clearRect.apply @context, rectangle
    else
      @context.clearRect.apply @context, [0, 0, @canvas.width, @canvas.height]

  stroke: (strokableThings) =>
    for thing, arguments of strokableThings
