How to make a color brigher

I have a color that I get in runtime. I need to find a way to make it a bit brighter. I found a few examples on line, non worked for me. Any ideas? The only thing that made any difference to the color was changing to HSV. But I couldn't understand how it worked. Thanks!

Answers


Use RGB values manually:

final int brighter = 25;
Color.rgb(Color.red(color) + brighter, Color.green(color) + brighter, Color.blue(color) + brighter);

You of course would have to make something that checks that any value does not get over 255.

EDIT Palette won't work with a single color.


Need Your Help

Android: how to determine if a Live Wallpaper is set or not

java android button action live-wallpaper

I would like to know if my live wallpaper has been set or not, this is because I have a button "set wallpaper" that I would like to enable only if my wallpaper hasn't already been set.