Mondrian Generator ------------------ Idea: http://www.moma.org/collection/depts/paint_sculpt/blowups/paint_sculpt_018.html Tekstuuri 256x256 jaetaan 64 eri "raitaan" jolloin jokaisen "raidan" leveys on 4 pikseliä 0. Start with white 256,256 texture 1. generate at random 10-25 squares / boxes with minimum size of 5x5 and max size 5x10. This means Boxes also must be higher than wide. 2. position each box into texture by painting with either yellow, white, red or blue. 3. After this loop create the random lines over the boxes by walking through each line and row and with 50% probability you will draw randomcolor line. 4. If line is to be drawn into this row / columns, throw 1d100 and 0-50 is yellow pixel, 51-65 blue, 66-80 red, 81-95 blue, 96-100 white 5. your texture should be finished