We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm a beginner and wanna know how I can calculate this image to forms as rect(40, 40, 35, 45); and such. I just really love this image and want to recreate it in someway.
Answers
@blank1000 --
Use
rect()
for each rectangle. See the examples here:To make each rect filled with red, blue, etc., use
fill()
. See the examples here:To make every rect have a (black) colored stroke outline, use
stroke()
:To make the stroke outline thick, use
strokeWeight()
:If you try and need feedback, post your example code here along with any follow-up questions that you have!
Here's my initial attempt. Still needs some adjustments in order to look like the art pic though.
But it's up to you from now on. If you're in doubt about some part of the code, just ask here.
Visit this link to view it online: https://OpenProcessing.org/sketch/412049 :bz