from ifsFractals import *
T1 = np.array([[0.7, 0., 0.15], [0., 0.7, 0.3], [0., 0., 1.]])
T2 = Translate(0.35, 0) @ Rotate(np.pi / 3) @ Scale(0.35 * np.sqrt(2))
T3 = Translate(0.3, 0.35) @ Rotate(-np.pi / 3) @ Scale(0.35 * np.sqrt(2))
T4 = Translate(0.45, 0.2) @ ScaleXY(1 / 10, 3 / 10)
T = [T1, T2, T3, T4]
Box = np.array([[0, 0, 1], [1, 0, 1], [1, 1, 1], [0, 1, 1], [0, 0, 1],
[1 / 10, 1 / 10, 1], [1 / 10 - 1 / 20, 1 / 10 + 1 / 20, 1]]).T
figuresToPlot = generate_figures(6, [Box], T)
plot_figures(figuresToPlot, size=10, width=.8, colour='red')