Why is this working: color[]
in
Programming Questions
•
9 months ago
I am trying to learn Processing by carefully studying other peoples code.
Right now I am spending days taking this apart:
http://www.openprocessing.org/sketch/73427
One thing that is really hard for me to understand, is when apparently some people write a lot of code that to me appears as not really supposed to work, but it usually works better than the code I can find in the examples on processing.org
It's a nice way to learn tricks as well, but I don't get it - Example: it appears that writing "for" loops works well without {} or even ; after it, and it then just runs the following line in virtual {} - but I cannot find any of that in the official documentation.
Tell me, if you can; What does this line, from the above link do:
void trace(color[] pix, int sy, int ey)
I understand:
void: Function returns no value
trace: Name of function to implement
(color: I understand, but then.. [] ?!?
Thanks a lot for not killing me while I'm noob :)
Right now I am spending days taking this apart:
http://www.openprocessing.org/sketch/73427
One thing that is really hard for me to understand, is when apparently some people write a lot of code that to me appears as not really supposed to work, but it usually works better than the code I can find in the examples on processing.org
It's a nice way to learn tricks as well, but I don't get it - Example: it appears that writing "for" loops works well without {} or even ; after it, and it then just runs the following line in virtual {} - but I cannot find any of that in the official documentation.
Tell me, if you can; What does this line, from the above link do:
void trace(color[] pix, int sy, int ey)
I understand:
void: Function returns no value
trace: Name of function to implement
(color: I understand, but then.. [] ?!?
Thanks a lot for not killing me while I'm noob :)
1