MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / clickSplat

Function clickSplat

src/tailwind/Animations/SplashCursor/SplashCursor.jsx:811–819  ·  view source on GitHub ↗
(pointer)

Source from the content-addressed store, hash-verified

809 }
810
811 function clickSplat(pointer) {
812 const color = generateColor();
813 color.r *= 10.0;
814 color.g *= 10.0;
815 color.b *= 10.0;
816 let dx = 10 * (Math.random() - 0.5);
817 let dy = 30 * (Math.random() - 0.5);
818 splat(pointer.texcoordX, pointer.texcoordY, dx, dy, color);
819 }
820
821 function splat(x, y, dx, dy, color) {
822 splatProgram.bind();

Callers 1

SplashCursorFunction · 0.70

Calls 2

generateColorFunction · 0.70
splatFunction · 0.70

Tested by

no test coverage detected