Java tutorial
import java.awt.Color; import java.util.Arrays; public class Main { public static void main(String[] args) { Color myColor = Color.RED; System.out.println(Arrays.toString(myColor.getColorComponents(null))); } }