graphdefaults function in c using graphics.h
graphdefaults function resets all graphics settings to their defaults.
Declaration: void graphdefaults();
It resets the following graphics settings :-
- Sets the viewport to the entire screen.
- Moves the current position to (0,0).
- Sets the default palette colors, background color, and drawing color.
- Sets the default fill style and pattern.
- Sets the default text font and justification.
In the above program we have first changed the drawing color to RED and background color to YELLOW and then drawn a circle with (250, 250) as center and 50 as radius. When the user will press a key graphdefaults is called and both drawing and background color will be reset to their default values i.e.
need an explanation for this answer? contact us directly to get an explanation for this answer