Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- else if(shape instanceof Circle){
- Circle circle = (Circle) shape;
- double x=circle.center.x-circle.radius;
- double y=circle.center.y+circle.radius;
- double wh=2*circle.radius;
- g.fillOval((int)x,(int)y,(int)wh,(int)wh);
- }
Add Comment
Please, Sign In to add comment