Shortening a simple piece of code
in
Programming Questions
•
1 year ago
Just wondering if anyone could help me shorten this piece of code?
float p = -15; //coding for new lights.
float q = 100;
float s = 80;
ellipse(p, 50, q, q); //positioning of lights
filter(BLUR);
ellipse(p, 50, s, s);
ellipse(p, 200, q, q);
filter(BLUR);
ellipse(p, 200, s, s);
ellipse(p, 350, q, q);
filter(BLUR);
ellipse(p, 350, s, s);
its basically just a row of circles which are part of my code, but its making my browser lag a bit
float p = -15; //coding for new lights.
float q = 100;
float s = 80;
ellipse(p, 50, q, q); //positioning of lights
filter(BLUR);
ellipse(p, 50, s, s);
ellipse(p, 200, q, q);
filter(BLUR);
ellipse(p, 200, s, s);
ellipse(p, 350, q, q);
filter(BLUR);
ellipse(p, 350, s, s);
its basically just a row of circles which are part of my code, but its making my browser lag a bit
1