export declare const NOISE_TERRACES_SKETCH = "\nfunction setup() {\n const bgMode = typeof backgroundMode !== 'undefined' ? backgroundMode : 'rgb';\n if (bgMode === 'white') background(245, 245, 245);\n else if (bgMode === 'black') background(10, 10, 10);\n else {\n const r = Math.floor((S.brightness / 100) * 255);\n const g = Math.floor((S.rhythmicity / 100) * 255);\n const b = Math.floor((S.harmonicity / 100) * 255);\n background(r, g, b);\n }\n\n const levels = Math.floor(map(S.harmonicity, 0, 100, 6, 16));\n const res = Math.floor(map(S.brightness, 0, 100, 3, 10));\n\n const mainHue = (S.brightness * 3.6) % 360;\n const palette = [];\n for (let i = 0; i < 16; i++) {\n const h = (mainHue + i * 22.5) % 360;\n const sat = map(S.treble, 0, 100, 60, 90);\n const bri = map(S.bass, 0, 100, 70, 95);\n palette.push([h, sat, bri]);\n }\n\n noStroke();\n\n for (let lvl = 0; lvl < levels; lvl++) {\n const iso = lvl / levels;\n const [h, sat, bri] = palette[lvl % palette.length];\n const satBoost = map(S.treble, 0, 100, 1.0, 1.4);\n const alpha = lerp(0.95, 0.5, iso) * map(S.volume, 0, 100, 0.5, 1.0);\n \n fill(hslColor(h, constrain(sat * satBoost, 0, 100), bri, alpha));\n \n const scale = 0.012 + lvl * 0.0025;\n for (let x = 0; x < width; x += res) {\n for (let y = 0; y < height; y += res) {\n if (noise(x * scale, y * scale) > iso * map(S.rhythmicity, 0, 100, 3.4, 8.3)) {\n const rw = res * (0.9 + random() * 0.3);\n const rh = res * (0.9 + random() * 0.3);\n rect(x, y, rw, rh);\n }\n }\n }\n }\n}\n\nfunction hslColor(h, s, l, a) {\n if (a !== undefined) return 'hsla(' + h + ',' + s + '%,' + l + '%,' + a + ')';\n return 'hsl(' + h + ',' + s + '%,' + l + '%)';\n}\n"; export default NOISE_TERRACES_SKETCH; //# sourceMappingURL=noiseTerraces.d.ts.map