PixelThrow
Throws pixels along the cursor's path like a fluid — brighter (or redder/greener/bluer) pixels are flung farther, then settle back with friction
Props
Prop
Details
throwKey"luminance" | "darkness" | "red" | "green" | "blue"Default:
luminanceWhich pixel value decides how far a pixel is thrown
throwKey"luminance" | "darkness" | "red" | "green" | "blue"Default: luminanceWhich pixel value decides how far a pixel is thrown
strengthnumberDefault:
0.25Maximum distance pixels can be thrown
strengthnumberDefault: 0.25Maximum distance pixels can be thrown
keyInfluencenumberDefault:
0.8How much the chosen value modulates throw distance (0 = all pixels thrown equally, 1 = only high-value pixels move)
keyInfluencenumberDefault: 0.8How much the chosen value modulates throw distance (0 = all pixels thrown equally, 1 = only high-value pixels move)
radiusnumberDefault:
0.2Size of the cursor's throw brush
radiusnumberDefault: 0.2Size of the cursor's throw brush
frictionnumberDefault:
0.3How quickly thrown pixels settle back to their origin (0 = float almost forever, 1 = snap back fast)
frictionnumberDefault: 0.3How quickly thrown pixels settle back to their origin (0 = float almost forever, 1 = snap back fast)
momentumnumberDefault:
0.5How much the thrown flow keeps drifting and swirling after the cursor passes (fluidity)
momentumnumberDefault: 0.5How much the thrown flow keeps drifting and swirling after the cursor passes (fluidity)
edges"stretch" | "transparent" | "mirror" | "wrap"Default:
stretchHow to handle pixels thrown beyond the canvas edges
edges"stretch" | "transparent" | "mirror" | "wrap"Default: stretchHow to handle pixels thrown beyond the canvas edges