若彬的Blog

导航

03 2023 档案

透明度百分比与十六进制对应表(附Java转换算法)
摘要:for (double i = 1; i >= 0; i -= 0.01) { i = Math.round(i * 100) / 100.0d; int alpha = (int) Math.round(i * 255); String hex = Integer.toHexString(alph 阅读全文

posted @ 2023-03-06 17:25 剑指明月 阅读(286) 评论(0) 推荐(0)