export declare const ORB_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 cx = width / 2 + map(S.dynamicRange, 0, 100, -150, 150);\n const cy = height / 2 + map(S.rhythmicity, 0, 100, -100, 100);\n const baseRadius = map(S.length, 0, 100, 240, 1200);\n const steps = Math.round(map(S.rhythmicity, 0, 100, 280, 400));\n const baseHue = map(S.hue, 0, 100, 0, 360);\n const hue1 = baseHue;\n const hue2 = (baseHue + map(S.attack, 0, 100, 80, 180)) % 360;\n\n noStroke();\n\n for (let i = steps; i > 0; i--) {\n const pct = i / steps;\n const r = baseRadius * pct * map(S.aggression, 0, 100, 0.92, 1.06);\n const t = pow(pct, map(S.brightness, 0, 100, 1.8, 2.8));\n const h = (lerp(hue1, hue2, t) + pct * map(S.harmonicity, 0, 100, -15, 15) + sin(pct * PI * 3) * map(S.brightness, 0, 100, -12, 12)) % 360;\n const sat = constrain(70 + map(S.treble, 0, 100, -20, 20), 0, 100);\n const bri = constrain(lerp(90, 30, t) + map(S.brightness, 0, 100, -6, 4), 0, 100);\n const alpha = (map(pct, 1, 0, 18, 70) + sin(i * 0.15) * map(S.treble, 0, 100, 1, 4)) * map(S.volume, 0, 100, 0.8, 1.1) * 1.2;\n \n fill(hslColor(h, sat, bri, constrain(alpha / 100, 0, 1)));\n \n const rx = r * map(S.aggression, 0, 100, 0.9, 1.05);\n const ry = r * map(S.aggression, 0, 100, 0.9, 1.05);\n const angle = pct * PI * map(S.rhythmicity, 0, 100, 2, 4);\n const wobbleAmp = map(S.aggression, 0, 100, 10, 40);\n const wobbleX = sin(angle) * wobbleAmp;\n const wobbleY = cos(angle) * wobbleAmp;\n \n ellipse(cx + wobbleX, cy + wobbleY, rx * 2, ry * 2);\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 ORB_SKETCH; //# sourceMappingURL=orb.d.ts.map