Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void lamp(int x,int y);
- void lamp(int x,int y){
- setcolor(GLCOLOR);
- circle((GLW+GLH)/2+x,y,GLH/2);
- moveto(x,y);
- lineto(x+(GLW)/2,y);
- moveto(x+GLH+GLW/2,y);
- lineto(x+GLH+GLW,y);
- moveto(GLW/2+int(0.3*(GLH/2))+x,y+int((GLH/2)*0.7));
- lineto(GLW/2+int(1.7*(GLH/2))+x,y-int((GLH/2)*0.7));
- moveto(GLW/2+int(0.3*(GLH/2))+x,y-int((GLH/2)*0.7));
- lineto(GLW/2+int(1.7*(GLH/2))+x,y+int((GLH/2)*0.7));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement