Hello, I'm asking for some general advice on helping me code my first ever project (and learn Processing in the process)
I like the idea of taking old techniques and executing them using modern methods. I've been putting off learning Processing for a while but recently thought up a good beginner project that'd induct me into the application.
Andrew Loomis is an illustrator who has written some well-respected instructional books. In one of them, he introduces a process called "informal subdivision" which is a method of splitting up a page using lines in order to build a compositional framework on which to use as a guide for your illustration.
The process of creating an informal subdivision grid is fairly simple. Simple rules & a bit of randomness. So I thought it'd be a great first-step to tackle Processing. Imagine the subdivision going on for many generations, I think it'd create some interesting grids.
Here's a scan from Loomis' book on how to subdivide a page:
So, I'm wondering what the best way to code this is. The first hurdle I'm stuck at is how to detect when two lines intersect, then draw a horizontal & vertical crosshair at that coordinate.
Also, the part about never splitting a rectangle into a symmetrical X confusing me.
So far, I've been using line(x, y) to draw my lines. Would PVectors be better suited for this purpose?
Would I need to store the coordinates of my lines in an array? Does it need to be 2 separate arrays (one for x, one for y)?
Thanks and sorry for my shotgun approach to asking questions. I'm not asking for all the answers to be delivered, but I'd be grateful if you could point me in the direction of content or functions that are similar to what I'm trying to achieve.