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

Request: Set a custom image via JavaScript as a base64 string #55

Open lexum0 opened 6 months ago

lexum0 commented 6 months ago

Adding a function to set a custom image via JavaScript with a base64 image string would make it very easy to customize with a local image by just calling a function like setBase64Image(string) with the image formatted as "data:image/jpeg;base64," + data.base64EncodedString() which is set in image.src

I'm currently using this method to customize jQuery WebGL Ripples in a macOS app (Backgrounds) to use it as a wallpaper. With this function it's very easy to use the user's wallpaper or any local file

Rezmason commented 6 months ago

You're right, this is low hanging fruit. 🍐

This month I'm diving back into this project (in my free time) after completing a circuit of other projects, and I'll start with this feature request

lexum0 commented 6 months ago

Awesome! Thank you!