public final class NamedColor extends Object
NamedColor()
static int[]
rgb(String hex)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public NamedColor()
public static int[] rgb(String hex)
若颜色无法解析则返回null
若颜色参数包含透明通道,那个返回参数最后一个元素为透明度值 [0,255] 0表示完全透明,255表示完全不透明。
hex
Copyright © 2024. All rights reserved.