在Java中,我想设置一个可以存储多个整数(RGB值)的变量,整数用逗号分隔.例如,我当前的代码就像
background(255,255,0); // This changes my GUI background color to yellow.
Run Code Online (Sandbox Code Playgroud)
我想要的代码是
type yellow = (Here goes the yellow's RGB value 255,255,0)
background(yellow);
Run Code Online (Sandbox Code Playgroud)
我的问题是如何设置变量黄色,以便它可以取代实际的RGB值.谢谢.