Open jsnkuhn opened 6 years ago
So instead of flipping between images it's rather adding/removing effects to the image? Hmm, interesting...
Yeah it seems to me what gameboy was really trying to accomplish originally with the overlay-ed translucent black gif was to just change the image brightness. I don't know how feasible this kind of thing is as a desktop app but I use it all the time on the web to not need two or more "versions" of a single image. This could greatly reduce the amount of images that we need to store in the program.
Don't know if this helps at all but here's Mozilla developers network page on css filters: https://developer.mozilla.org/en-US/docs/Web/CSS/filter
also occurs to me that this might be able to help us with folks wanting different colored versions of the mic and speaker icons??
Currently if you link a single image in a picture tag you get a default binary styling of: State 0 being the image with a transparent black image on top of it and state 1 being the untouched image file. This is working well in cases where the icons are on a black background. No so much elsewhere.
Existing trackers seem to use filters like brightness and opacity for their 0 state. Would it be possible to apply these kind of filters? In a perfect world customization of filter levels would be great.
examples:
opacity: .3;
toopacity: 1;
filter: brightness(.3);
tofilter: brightness(1);
In the case of the windfish tracker something along these lines is necessary so that the animation of the instruments does not get out of sync by reloading an image for the second state.