bob.php :veritrek_gold: on Nostr: most colour libs are like "if you have hsl, new HSL. if you have rgb, new RGB." and ...
most colour libs are like "if you have hsl, new HSL. if you have rgb, new RGB." and "if you wanna convert use this method that poops out a new instance of a different format."
you could do that. but imho this is a badong api.
how about if i have a colour i just new Colour and and let it manage its own various representations that can be queried at will.
this is from research i have done into the problem by using a gui pixel sampler before.
you could do that. but imho this is a badong api.
how about if i have a colour i just new Colour and and let it manage its own various representations that can be queried at will.
this is from research i have done into the problem by using a gui pixel sampler before.