We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have the following question ! I want to make a figure out of cubes . My problem is if I use this code I just get one box. The other box is missing. What is wrong with
Answers
translate() is cumulative. your second box is at 30+45, 90+75, 0 which is out of the screen.
and you'll see it.
to stop this, use pushMatrix(), popMatrix()
ALSO please don't post screenshots of code, paste it as text.
Make size bigger
size(900, 800);
Ahh thanks a million..oke i am new here and will Do so !! :)
and whilst copy and pasting this is ok for 2 or 3 blocks, it'll get cumbersome really quickly. so make a function that takes colour and position (possibly size) and that instead.