bevy_generative 0.4.0

Procedural generation in Bevy
Documentation
1
2
3
4
5
6
7
8
9
export function save(data, filename, type) {
	let a = document.createElement("a");
	let blob = new Blob([data], { type: type });
	a.href = window.URL.createObjectURL(blob);
	a.download = filename;
	document.getElementsByTagName("BODY")[0].appendChild(a);
	a.click();
}