Mondrian city

This sketch show us city from top view which could be imaginated by Pietr Mondrian. It draws random street lines then places building on white space. The library p5Collide2D is used to detect if the random location of a building is hover a street. P5.js compute the drawings and pass every properties of each rectangle to SVG.js which rebuild the drawing into an downloadable SVG file.