Preserved functions in graphics.h
On the basis of easyx.h, graphics.h temporarily retains several bsolete functions to improve compatibility with older code.
The additional functions in graphics.h are as follows.
Function or data type | Description |
---|---|
bar | Draw a filled rectangle without a border. |
bar3d | Draw a filled 3D rectangle with a border. |
drawpoly | Draw a polygon without filling. |
fillpoly | Draw a filled polygon with a border. |
getcolor | Get current foreground color. |
getmaxx | Get the maximum x-coordinate in the physical coordinates of the graphics window. |
getmaxy | Get the maximum y-coordinate in the physical coordinates of the graphics window. |
getx | Get current x coordinates. |
gety | Get current y coordinates. |
linerel | Draw a line. |
lineto | Draw a line. |
moverel | Move current location. |
moveto | Move current location. |
outtext | Output a string at current location. |
setcolor | Set current foreground color. |
setwritemode | Set binary raster operation mode. |