export declare const CHLADNI_BLOOM_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 translate(width / 2, height / 2);\n \n const layers = Math.floor(map(S.volume + S.rhythmicity, 0, 200, 20, 90));\n const minStrokeW = map(S.volume, 0, 100, 1.0, 3.0);\n const maxStrokeW = map(S.treble, 0, 100, 2.0, 5.0);\n\n noFill();\n\n for (let i = 0; i < layers; i++) {\n const freq1 = Math.floor(map(S.aggression + random() * 50, 0, 150, 3, 20));\n const freq2 = Math.floor(map(S.treble + random() * 50, 0, 150, 2, 8));\n const amp = map(S.dynamicRange + random() * 30, 0, 130, 60, 400);\n const rotation = map(S.harmonicity + random() * 50, 0, 150, 0, PI * 4);\n const radiusOffset = map(S.bass, 0, 100, 40, 80);\n const strokeW = map(S.treble + S.volume * 0.5, 0, 100, minStrokeW, maxStrokeW);\n \n const hBase = (330 + random() * 100) % 360;\n const finalH = (hBase + (random() * 40 - 60) + map(S.hue, 0, 100, -10, 10) + 360) % 360;\n const finalC = constrain(85 + map(S.brightness, 0, 100, -20, 20), 0, 100);\n const finalL = constrain(90 + map(S.brightness, 0, 100, -15, 15), 0, 100);\n const finalA = constrain(0.5 + map(S.attack, 0, 100, 0, 0.5), 0.3, 1);\n\n push();\n rotate(rotation);\n strokeWeight(strokeW);\n stroke('hsla(' + finalH + ',' + finalC + '%,' + finalL + '%,' + finalA + ')');\n \n const angleStep = map(S.treble, 0, 100, 0.07, 0.03);\n beginShape();\n for (let aa = 0; aa < PI * 2; aa += angleStep) {\n const rad = radiusOffset * i + amp * sin(freq1 * aa) * cos(freq2 * aa * map(S.rhythmicity, 0, 100, 0.3, 2));\n const x = rad * cos(aa);\n const y = rad * sin(aa);\n vertex(x, y);\n }\n endShape(CLOSE);\n pop();\n }\n}\n"; export default CHLADNI_BLOOM_SKETCH; //# sourceMappingURL=chladniBloom.d.ts.map