We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I'm quite new to Processing and I've been exercising alot. But there's one that I just can't find. However I know it's simple, I just can't solve it. Believe it or not but I've been searching for over 2weeks to complete this one, I would be eternally grateful for the one helping me out with this. Exercise says that I have to be able to set the following as dynamic:
So the rect should fit perfectly in the middle of the window every time, even if i change the size, etc
Picture of what I mean:
Anyone that could help me out? I'm probably not far from finding it but if i see the code I can sure find what I did wrong.
Regards -Ben
Answers
http://nl.tinypic.com/view.php?pic=vrvvhh&s=5#.UlxA3VBsw-N
Link/picture of what I mean, sorry.
Dunno much either. But this should get ya started: :-\"
Hmm, still no clue.. It's almost something like this:
Still tho, no clue how to do the one I posted before, anyone?=/
No1?..
Perhaps you can use vertex() to make colored closed shapes?
Imho the objective of this excercise is to teach student to separate data and drawing. So by "dynamic" they mean that student shouldn't hard-code numbers into code as magic constants, but isntead should have them declared as variables. I don't think they meant "randomly assigned numbers" as you can't really dynamically change sketch screen size in runtime. :)
Thanks !
With some more trial & errorin' with your sketch I found what my mistakes were. Appreciated alot sir!
Regards -Ben
And yes, everything shouldn't have been random. But as I said with some longer research in his sketch I finally found my mistakes ;-) Thanks for the replies.