Color Methods
Telling the graphics object to “pick up a certain pen”
g.setColor(c1);
g.setColor(new Color(255,0,0));
This “sets the context” for writing & drawing
What pen do you have?
Color c2 = g.getColor();
Previous slide
Next slide
Back to first slide
View graphic version