Again, you’ve made three topics around the same subject. It’s better to keep related questions in one thread, rather than make different ones where people are answering very similar things.
I have seen that some of this quads are twisted, do you know how could I avoid It? I can’t imagine the way to do that easily [IMG_20210915_100049]
@jb4x that’s quite the pro approach.
I’ve added below two other ways you achieve a similar result, one a slightly simpler version of the one jb4x proposed. I’m not a fan of the “quad” method… it’s awkward having to put 8 arguments into it… @humano look up “beginShape()” in the Processing reference?
int numObjects = 100;
void setup()
{
size(500, 500);
}
void draw()
{
background(255);
noStroke();
// draw red 'quads' using the random rect method
for(int i = 0; i < numObjects…