Sound resource:
https://samplefocus.com/samples/japanese-percussive-sound-falling-hit?page=3
Visual:
https://editor.p5js.org/Siming2024/sketches/VCRrlpJsU
Code references:
https://p5js.org/reference/p5/int/
function setGradient(x, y, w, h, c1, c2) { noFill(); for (let i = y; i <= y + h; i++) { let inter = map(i, y, y + h, 0, 1); let c = lerpColor(c1, c2, inter); stroke(c); line(x, i, x + w, i);
https://editor.p5js.org/pattvira/sketches/mutDHiETf
https://www.youtube.com/watch?v=lPgscmgxcH0
// assign different colors to different fan according to the position let colorIndex = (row * cols + col) % 5; fill(getFanColor(colorIndex));