 		duration: 0.2
 		from: 0
 		to: 512
-		update: (d) ->
-			d = Math.floor Math.abs(d - 256)
-			@fillStyle = "rgb(#{ d }, #{ d }, #{ d })"
+		update: (data) ->
+			data = Math.floor Math.abs(d - 256)
+			@fillStyle = "rgb(#{ data }, #{ data }, #{ data })"
 
 	shake: new Bu.Animation
 		init: (anim, arg) ->

		init: (anim) ->
			anim.from = @scale.y
			anim.to = -anim.from
		update: (d) ->
			@scale.y = d

	# with arguments


		init: (anim) ->
			anim.from =
				opacity: @opacity
				scale: @scale.x
			anim.to =
				opacity: if @opacity == 1 then 0 else 1
				scale: if @opacity == 1 then @scale.x * 1.5 else @scale.x / 1.5
		update: (data) ->
			@opacity = data.opacity
			@scale = data.scale

	clip: new Bu.Animation
		init: (anim) ->
