jaburns / NintendoSpy

Live controller viewer for Nintendo consoles. Includes viewer application for Windows, and Arduino sketch for hardware interface.
MIT License
255 stars 85 forks source link

Color interpolation instead of sweeping an image #44

Open car-lisle opened 6 years ago

car-lisle commented 6 years ago

I am creating a skin for the gamecube and I noticed there is no changing of color through the use of pressure for the triggers. I don't really want to sweep an image as I think using a gradient would make for a cleaner layout. I was looking around and saw taking your hex code and linking it with a floating point, but I'm really new to this stuff. :( (edit) Here's the link I was given: https://stackoverflow.com/questions/13488957/interpolate-from-one-color-to-another

jaburns commented 6 years ago

That's an interesting idea. The place where triggers are rendered is here: https://github.com/jaburns/NintendoSpy/blob/master/ViewWindow.xaml.cs#L315 We could probably have a new possible direction for <analog>s in the skins for"color", and then provide a target color to tint the sprite towards.

Unfortunately I don't have the time right now to implement this myself, but I'll leave the issue open.