2 ms·
Source wouldn't help that much. You'd need to implement it yourself for whatever image library you have anyway. It's not that hard: a: find the corner colors
by ars 18y ago
Source wouldn't help that much. You'd need to implement it yourself for whatever image library you have anyway.
It's not that hard:
a: find the corner colors
b: find 2 of the most saturated common colors in the logo
c: calculate luminance of your chosen color, to pick black or white text
Defining 'common' in b is probably the hardest part.