Multiple skies

This commit is contained in:
zenoamaro committed 2019-06-30 02:56:18 +02:00
1 parent 7f2c532d37
commit abfb7a20bc
4 files changed
+23 -6

No files matched your search

+4
View File
@@ -11,6 +11,10 @@ export function coords2index(width, x, y) {
return y * width + x;
}
export function gradient(from, to, i) {
return from + (to-from) * i;
}
export function random(min, max) {
return min + Math.random() * (max-min);
}