Second step of a CTwins effort to create a random Mondrian style grid painting. Green flag to generate something.
Thanks to Glenn Strong for starting me off. I like the random generation of the vertical and horizontal lines. I have added another touch of randomness in the width of the lines as they appear. What I really want is that the grid has some "merged" cells, to avoid "rows" and columns" forming. I'd also like either (i) random filling in using one of four primary colours yellow red blue green, as well as leaving white (ii) the ability for the user to 'colour' in the grid using touch mouse sensing. OK - I have given up the idea of merging cells for now, and have added some color block which the user can place at will. I hope. I need help now with deciding how we can get to control the colour blocks.