onlaj / Piano-LED-Visualizer

Piano LED Visualizer: Connect an LED strip to your Raspberry Pi and create an immersive visual experience for your piano playing
MIT License
494 stars 107 forks source link

Experimental Colormaps #485

Closed stephen322 closed 8 months ago

stephen322 commented 8 months ago

So far I've been focusing on cyclical colormaps (for reasons), but for Velocity Rainbow (and future Rainbow Color?) some non-cyclical colormaps may be fine.

I'm not sure which or how many should be included, but I've thrown in a whole bunch with this pull request. (The dim-to-bright Linear-Perceptual type may be okay for Velocity Rainbow, but should we clip out the black/near-zero colors? Remove these entirely?)

Here's the resources I've been scouring:

I put this as reference in colormaps.py comments:

Some more random sites with collections, previews, and analysis:

stephen322 commented 8 months ago

Added special colormap "^Multicolor".

onlaj commented 8 months ago

but should we clip out the black/near-zero colors? Remove these entirely?

If someone wants to add a colormap with a black colors, I think it shouldn't mess up the settings; blacks might be there for a specific effect. You can always use different colormap if you don't want dim colors in there.

I haven't delved deeply into this topic, but is it possible to animate them? Something similar to how Rainbow colors work, moving left or right. edit. I can see that changing offset is enough to create an animation

stephen322 commented 8 months ago

I was thinking adding Colormap support to Rainbow Color would get the already in-place time-shift for free... But it just dawned on me that Animations could be used as a backlight? I made the Colormap animation just to preview the colors.