function main( x, y, p ) local w = bs_width() if not firstDraw then local distance = bs_distance( lastDrawX - x, lastDrawY - y ) if distance < w * .2 then return 0 end end local nx,ny = bs_normal() local rnd = math.random() * w * .3 nx = nx * (rnd * 8 - 4) ny = ny * (rnd * 8 - 4) local rnd2 = math.random() * .2 + .9 bs_circle(x + nx, y + ny, w * 0.5 * rnd2, 0) lastDrawX = x lastDrawY = y firstDraw = false return 1 end function last(x, y, p) end lastDrawX = 0 lastDrawY = 0 firstDraw = true