Rezmason / matrix

matrix (web-based green code rain, made with love)
https://rezmason.github.io/matrix
MIT License
3.29k stars 212 forks source link

Touch ripple effect #13

Closed 57r31 closed 2 years ago

57r31 commented 2 years ago

Should be looking nice on touchscreens

Like https://www.shadertoy.com/view/ll2GRD but with decay

57r31 commented 2 years ago

ok, i did the base stuff https://github.com/57r31/matrix run with effect=ripples

Rezmason commented 2 years ago

I'll take a look tonight! Also any feedback you may have on the ability to make changes to this project is valuable in its own right 😊

Rezmason commented 2 years ago

Short version: I developed your proof of concept into a solid feature, with ripples propagating out from the click position. Up to five simultaneous ripples at a time. Adjusted their aspect ratio to appear circular, and also gave the glyphs a tint similar to what's in the Resurrections shot, which brighten slightly in intensity where the ripples are. Also added webcam support, but that's a separate opt-in so no one is caught off-guard when the browser requests camera access.

Since a different kind of ripple already exists in the project, I think I'll rename the effect "mirror".

I'll upload what I've got later tonight and link you to it. I'll also add an Attribution section to the readme, where contributors' names go. If that's all right with you, just let me know what moniker you'd like to be represented as.

Rezmason commented 2 years ago

Mirror effect

Mirror effect with camera

57r31 commented 2 years ago

wow nice, thanks!