2021
05-29
05-29
Java基础之颜色工具类(超详细注释)
颜色工具类(超详细注释)设置属性值自动格式化rgb值和十六进制颜色值。importjava.util.HashMap;importjava.util.Map;publicclassColor{privatefinalString[]hex_letters={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"};privateDoublealpha;//透明度(0.0~1.0)privateIntegerred;//红色值(0~255)privateIntegergreen;//绿色值(0~255)private...
继续阅读 >