This sketch builds off of the drawHouse example:
This sketch defines a drawTown()
function that calls the drawBlock()
function four times, and the drawBlock()
function calls the drawHouse()
function four times.
This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/creating-functions/town