Arranging characters partially random on a typographic grid with Processing
in
Programming Questions
•
2 years ago
Hi everyone,
I wanted to experiment with typography with Processing.
What I wanted to do was to display characters on a grid. The posisioning assign to the characters is defined but not fixed. Let me just show you this image
In this case for example the first J is the first letter of a four letter word. This means that the character can appear in whichever position in the grid but whith these conditions:
1. it should appear in the second or in the third row (now it's in the second)
2. it should not appear in the first or the last column (this should be fairly easy)
3. it should appear in whichever of the other columns but it has to leave room for the following three letters, so it can be displayed only in the 2nd, 3rd, or 4th column.
4. it should not appear in the gutters(the smaller columns)
So on for the other letters.
It seems to me that I have to create a two dimensional array populated by objects containing the characters... But I have no clue if this sounds any logic and - if so - how to go on...
Any help would be very much appreciated.
Thank you!
1