How can i code in Processing 2 an array grammar to generate a two-dimensional array?

edited June 2014 in How To...

Hi, I'm new to Processing. Currently I'm working on array grammar to generate two-dimensional array. I would like to implement it in Processing for the visualization of the system. Please advice me where to begin. It will be also nice if someone can share resources on matter related to this question.

I will be really grateful. Thank you.

Tagged:

Answers

  • edited June 2014

    Currently I'm working on array grammar to generate two-dimensional array.

    Gonna assume that is a mistranslation for something like:
    "Wanna know the syntax for 2D arrays." ;)

    Processing IDE comes w/ many examples. Hold down CTRL+SHIFT and hit key O. That'll open the "Java Examples"!
    Now click Basics -> Arrays -> Array2D. Then study the opened example there. O:-)

  • Thank you for the reply GoToLoop. The system is similar to L-System available in the book 'The Nature of Code'. It use rewriting rules to generate the two-dimensional arrays. Yes that example is helpful.

Sign In or Register to comment.