     input :
       rgba: "Uint8Array"
       dimensions : '[]'
-    threshold : "0-8"
-    rounds : "0-5"
-    fill : "true, false"
+    removeThreshold : "0-8, default: 5"
+    removePasses : "0-5, default: 2"
+    fillPasses : "0-5, default: 3"
+    fillAlpha : "\"linear\", \"proportional\" (default)"
   EXAMPLES : [
       { description : "Smooth end and start segments with default values", lines :
         [ "time(start : 0, end : 10) ->"

    rgba


  fill : (dimensions, rgba, alpha) ->

    width = dimensions[0]
    height = dimensions[1]

        #left down
        neighbours++ if rgba[base - width * 4 - 4] isnt 0 or h - 1 < 0 or w - 1 < 0

        if neighbours >= removeThreshold
          tempBuffer[base] = rgba[base]        
        else
          tempBuffer[base] = 0
