xxxxxxxxxx
float angle, size; //float -> decimal point number
int dotCount = 4; // int -> whole number
float distance;
void setup (){
fullscreen();
background(0);
size = 10;
}
void draw(){
distance += 3;
if (distance > height/2){
distance = 0;
}
angle += 0.5/ PI;
for(int i = 0; i < dotCount; i++){
float dots = radians(360/dotCount * i);
float xPos = width/2 + distance * sin(angle + dots);
float yPos = height/2 + distance *cos(angle + dots);
stroke(255);
strokeWeight(size);
point(xPos, yPos);
}
}