Richer random styles, glass shaders, and eye-safe randomize tuning

Add geometric genome patterns (bands, grids, hex, arcs, hatch, orbs), glass refraction shading, improved reeded and chrome materials, and smart exposure/contrast/lighting when randomizing so results stay pleasant.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonxlnx
2026-06-11 17:47:47 +02:00
parent 87e9af6b0f
commit e309bc71d6
3 changed files with 199 additions and 38 deletions
+3 -3
View File
@@ -50,10 +50,10 @@ function generateRandomPalette(rand, tone) {
var dark = tone === "dark";
var colors = sch.map(function (off, i) {
var hue = ((h + off) % 360 + 360) % 360;
var s = dark ? 0.75 + rand() * 0.25 : 0.55 + rand() * 0.35;
var s = dark ? 0.48 + rand() * 0.32 : 0.38 + rand() * 0.28;
var l = dark
? (i === 0 ? 0.52 : 0.28 + rand() * 0.45)
: (i === 0 ? 0.5 : 0.45 + rand() * 0.4);
? (i === 0 ? 0.48 : 0.26 + rand() * 0.38)
: (i === 0 ? 0.46 : 0.42 + rand() * 0.34);
return hslToHex(hue, s, l);
});
var bg = dark