setfillstyle function sets the current fill pattern and fill color.
Declaration :- void setfillstyle( int pattern, int color);
Different fill styles:
[pastacode lang=”c” manual=”enum%20fill_styles%20%0A%7B%20%0A%20%20%20EMPTY_FILL%2C%20%0A%20%20%20SOLID_FILL%2C%20%0A%20%20%20LINE_FILL%2C%20%0A%20%20%20LTSLASH_FILL%2C%20%0A%20%20%20SLASH_FILL%2C%0A%20%20%20BKSLASH_FILL%2C%20%0A%20%20%20LTBKSLASH_FILL%2C%20%0A%20%20%20HATCH_FILL%2C%20%0A%20%20%20XHATCH_FILL%2C%20%0A%20%20%20INTERLEAVE_FILL%2C%0A%20%20%20WIDE_DOT_FILL%2C%20%0A%20%20%20CLOSE_DOT_FILL%2C%20%0A%20%20%20USER_FILL%20%0A%7D%3B” message=”” highlight=”” provider=”manual”/]