 		lenU = 0
 		for i in da
 			lenU += i
-		delta %= lenU
-		x = delta
+		offset %= lenU
+		x = offset
 
 		@moveTo 0, 0
 		# TODO need a small fix

			else
				pts = shape.vertices
				for i in [ 0 ... pts.length - 1]
					@context.dashedLine pts[i].x, pts[i].y, pts[i + 1].x, pts[i + 1].y, shape.dashStyle, shape.dashDelta
			@context.stroke()
		@


				@context.dashedLine(
						shape.points[0].x, shape.points[0].y,
						shape.points[1].x, shape.points[1].y,
						shape.dashStyle, shape.dashOffset
				)
			else
				@context.lineTo shape.points[0].x, shape.points[0].y
