Color.RED等常量可以直接用,或者用Color(int r,int g,int b)构造函数,分别代表红绿蓝的参数0-255

很多地方需要设置颜色,都要用这个

java常量

static Color black

static Color BLACK

static Color blue

static Color BLUE

static Color cyan

static Color CYAN

static Color DARK_GRAY

static Color darkGray

static Color gray

static Color GRAY

static Color green

static Color GREEN

static Color LIGHT_GRAY

static Color lightGray

static Color magenta

static Color MAGENTA

static Color orange

static Color ORANGE

static Color pink

static Color PINK

static Color red

static Color RED

static Color white

static Color WHITE

static Color yellow

static Color YELLOW

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐