colors = [WHITE, BLACK, RED, BLACK, BLACK];

var radius=20+distance;
var speed = counter/20;
for(var i=0; i<200; i+=2){
    lineStyle(colors[(i/2)%4], 1, 30);
    fillstyle(black, 10)
    circle(oldX+sin(i+speed)*radius, oldY+cos(i+speed)*radius, 5); 
}