Need help in using loop within draw
in
Programming Questions
•
1 year ago
Dear friends
Will someone pls point out the mistake in the below code
It is supposed to draw a diagonal line but i get only a black screen as output.
void setup()
{
background(0);
size(300,300);
}
void draw()
{
while(true)
{
stroke(255);
line(0,0,300,300);
}
}
Will someone pls point out the mistake in the below code
It is supposed to draw a diagonal line but i get only a black screen as output.
void setup()
{
background(0);
size(300,300);
}
void draw()
{
while(true)
{
stroke(255);
line(0,0,300,300);
}
}
1