00001
00002 c
00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c All rights reserved.
00007 c
00008 c Redistribution and use in source and binary forms are permitted
00009 c provided that the above copyright notice and this paragraph are
00010 c duplicated in all such forms and that any documentation,
00011 c advertising materials, and other materials related to such
00012 c distribution and use acknowledge that the software was developed
00013 c by the author named above.
00014 c
00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019
00020
00021 subroutine boxf(x1,x2,y1,y2,icolor)
00022 save
00023 c
00024 c Like box, but fills the rectangle with a specified color.
00025 c
00026 dimension x(4),y(4)
00027 c
00028 x(1)=x1
00029 y(1)=y1
00030 x(2)=x2
00031 y(2)=y1
00032 x(3)=x2
00033 y(3)=y2
00034 x(4)=x1
00035 y(4)=y2
00036 call setfill(icolor)
00037 call polyfill(x,y,4)
00038 call unsetfill
00039 call box(x1,x2,y1,y2)
00040 c
00041 return
00042 end