给定背景颜色,如何获得使其在背景颜色上可读的前景色?
我的意思是在程序中自动计算前景色.
或者简化问题,如果从白/黑中选择前景色,如何在程序中进行选择?
user-interface colors
colors ×1
user-interface ×1