Advertisement
Guest User

❤️

a guest
Nov 11th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. //Zavd 1
  2. g.drawLine(0,0,100,90);
  3. g.drawRect(10,160,60,50);
  4. g.fillRoundRect(280,150,60,50,40,30);
  5. g.drawOval(10,250,50,50);
  6. g.drawArc(10,350,70,70,0,180);
  7.  
  8. int xp[]={10,200,10,200,10};
  9. int yp[]={450,450,650,650,450};
  10. int num=5;
  11. g.drawPokygon(xp, yp, num);
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. d=getSize();
  19. g.drawLine(0,0,d.width,d.heigh-1);
  20. g.drawLine(0,0,d.width,d.heigh-1,10);
  21. g.drawLine(50,50,d.width,d.heigh-10);
  22. g.drawRect(50,100,d.width,d.heigh-10);
  23. g.fillOval(50,100,d.width,d.heigh-10);
  24. g.fillOval(60,150,d.width,d.heigh-10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement