Answers for "List any 2 Built in Colors of Color Class of Java"

3

create color object java

//Color using RGB
Color col = Color(r, g, b);
//Color using RGBA
Color col = Color(r, g, b, a);

//r, g, b and a can be a float between 0.0 and 1 or 
//an int between 0 and 255
//The format must be consistant across all values
Posted by: Guest on May-14-2020
0

what is graphics default color java

Graphics g;
g.getColor();
Posted by: Guest on November-24-2019

Code answers related to "List any 2 Built in Colors of Color Class of Java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language