different_basis = {
let S = [
[1, -1 / 2],
[0, math.sqrt(3) / 2]
];
let SAInvSInv = math.multiply(S, math.inv(A), math.inv(S));
return (
new IteratedFunctionSystem(
D.map((d) => new AffineFunction([SAInvSInv, math.multiply(S, d)]))
)
.render_stochastic({
n: 200000,
colors: true,
image_width: width < 800 ? width : 800
})
);
}