Color-Picker for Love
Posted: Sun Jul 28, 2019 12:38 pm
If my previous post about loveCC (https://love2d.org/forums/viewtopic.php?f=5&t=86927)- we didn't talk even a bit about Color-Picker which is kinda sad so this topic should make up for that.
loveCC as you may know has become super-powerful now. It's default color-palette has now over 100 colors, 140 to be precise. But with more power comes more responsibility and selecting a color out of 140 colors is not easy unless you have all the colors lined up in a organised way and you just have to pick a color like you'd pick a dress from your wardrobe. And that's exactly what Color-Picker does
Color-Picker is an *awesome* tool whose aim in life is to make setting colors (background color, particle color, text color, etc) a child's play. loveCC (whose goal is not just to set color but also perform other tasks as well) if you remember sets color like this:-
Even though that's super simple yet sometimes you don't want to use the hit-and-trial method - by that I mean you don't want to try every color before you settle for the color you want. Nothing wrong with that but I have come with a better way (inspired from this post - https://love2d.org/forums/viewtopic.php ... 1f8c48246a)
So rather than going hit-and-trial you can use color-picker either for loveCC library or for independent use!!
So you have 140 colors to choose from - which is the default palette lovecc gives you (you can make your own palette but we won't get into that now). So you choose from the colors - click one that you like and that color-name is copied (to the clipboard) so that you can use it with loveCC.
But what if you are not planning to use it with loveCC! Worry not. If you right-click a color then the color-code will be copied not the color-name which you can then use in general case withoug loveCC's intervention.
If you have any doubts or just anything (reviews/critcs/etc) then feel free to comment! In fact I am very disappointed by the fact that nowadays the Love community is becoming more and more inactive. But more on that on the General Forums
loveCC as you may know has become super-powerful now. It's default color-palette has now over 100 colors, 140 to be precise. But with more power comes more responsibility and selecting a color out of 140 colors is not easy unless you have all the colors lined up in a organised way and you just have to pick a color like you'd pick a dress from your wardrobe. And that's exactly what Color-Picker does
Color-Picker is an *awesome* tool whose aim in life is to make setting colors (background color, particle color, text color, etc) a child's play. loveCC (whose goal is not just to set color but also perform other tasks as well) if you remember sets color like this:-
Code: Select all
lovecc:setColor("red") -- set opacity 1
lovecc:setColor("maroon",0.5) --set opacity 0.5
So rather than going hit-and-trial you can use color-picker either for loveCC library or for independent use!!
So you have 140 colors to choose from - which is the default palette lovecc gives you (you can make your own palette but we won't get into that now). So you choose from the colors - click one that you like and that color-name is copied (to the clipboard) so that you can use it with loveCC.
But what if you are not planning to use it with loveCC! Worry not. If you right-click a color then the color-code will be copied not the color-name which you can then use in general case withoug loveCC's intervention.
If you have any doubts or just anything (reviews/critcs/etc) then feel free to comment! In fact I am very disappointed by the fact that nowadays the Love community is becoming more and more inactive. But more on that on the General Forums