Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. void lamp(int x,int y);
  2.  
  3.  
  4.  
  5.  
  6. void lamp(int x,int y){
  7.  
  8. setcolor(GLCOLOR);
  9. circle((GLW+GLH)/2+x,y,GLH/2);
  10. moveto(x,y);
  11. lineto(x+(GLW)/2,y);
  12. moveto(x+GLH+GLW/2,y);
  13. lineto(x+GLH+GLW,y);
  14. moveto(GLW/2+int(0.3*(GLH/2))+x,y+int((GLH/2)*0.7));
  15. lineto(GLW/2+int(1.7*(GLH/2))+x,y-int((GLH/2)*0.7));
  16. moveto(GLW/2+int(0.3*(GLH/2))+x,y-int((GLH/2)*0.7));
  17. lineto(GLW/2+int(1.7*(GLH/2))+x,y+int((GLH/2)*0.7));
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement