rules for fractals, includes drawing with canvas