/** returns {@link Color} based on the provided {@link RGB} color. */
public static Color getColor(RGB rgb) {
if (!colors.containsKey(rgb)) {
colors.put(
new RGB(rgb.red, rgb.green, rgb.blue),
new Color(Display.getCurrent(), rgb.red, rgb.green, rgb.blue));
}
return colors.get(rgb);
}
ColorUtils.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:n4js
作者:
评论列表
文章目录