Need Help Creating a function that takes in a number n and divides the screen into n vertical bars :(:(:(:(
in
Programming Questions
•
11 months ago
cant figure out
int n=5;//number of times screen divided
void setup()
{
size(500,500);
}
void draw()
{
rect(0,0,width/n,height);
rect(0+width/n,0,width/n,height);
}
1