Guest User

Untitled

a guest
May 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. }
  2. else if(shape instanceof Circle){
  3. Circle circle = (Circle) shape;
  4. double x=circle.center.x-circle.radius;
  5. double y=circle.center.y+circle.radius;
  6. double wh=2*circle.radius;
  7. g.fillOval((int)x,(int)y,(int)wh,(int)wh);
  8.  
  9. }
Add Comment
Please, Sign In to add comment