function main( x, y, p ) local w = bs_width() local distance = bs_distance( prevX - x, prevY - y ) local r = (w / 2) - (distance * 200) if r < 1 then r = 1 end if firstDraw then prevX = x prevY = y firstDraw = false return 0 end bs_circle(x, y, r, 0) prevX = x prevY = y return 1 end function last(x, y, p) end prevX = 0 prevY = 0 firstDraw = true