Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package samples;
- import java.awt.Color;
- import acm.program.*;
- public class GraphicsProgramSample extends GraphicsProgram {
- public void run() {
- GFace face = new GFace();
- add(face);
- GFace face1 = new GFace();
- add(face1, 100, 200);
- face1.setColor(Color.yellow);
- GFace face2 = new GFace();
- add(face2, 300, 100);
- face2.setColor(Color.blue);
- face2.scale(0.4);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement