Issue when rendering small rectangles

Did you look at rectMode() command?

But maybe it’s just too small