function main( x, y, p ) local w = bs_width() if not firstDraw then local distance = bs_distance( lastDrawX - x, lastDrawY - y ) if distance < w * .05 then return 0 end end local rad = bs_stylus_rotate() local a = bs_width_max() / 10 local b = w bs_ellipse(x, y, a, b, rad, 0) lastDrawX = x lastDrawY = y firstDraw = false return 1 end function last(x, y, p) end lastDrawX = 0 lastDrawY = 0 firstDraw = true