This shows you the differences between two versions of the page.
|
c:graphics.h:setcolor [2015/05/06 18:10] Daniel Gohlke Added code Flags <code c> and </code> to Highlight the c Source |
c:graphics.h:setcolor [2024/02/16 01:05] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== setcolor ====== | ||
| - | <code c> | ||
| - | |||
| - | </code> | ||
| - | |||
| - | ==== using a color sky-blue, but you can begin with number 1 at 15 or more, using math ==== | ||
| - | setcolor is in work by code-reference.com \\ | ||
| - | if you are faster... don't hasitate and add it | ||
| - | |||
| - | <fc #00FFFF>#include<stdio.h> | ||
| - | #include<windows.h></fc> <fc #FF0000>/*you have to call windows library with this code*/</fc> | ||
| - | <code c> | ||
| - | #include<stdio.h> | ||
| - | |||
| - | int main(void) | ||
| - | { | ||
| - | |||
| - | |||
| - | SetConsoleTextAttribute(GetStdHandle (STD_OUTPUT_HANDLE),11); <fc #FF0000>/*the last number is the color*/</fc> | ||
| - | |||
| - | printf(" Hi, this is the your color "); | ||
| - | |||
| - | getch(); | ||
| - | |||
| - | } | ||
| - | </code> | ||
| - | |||
| - | <fc #FF0000>/*I hope this will can help you*/</fc> | ||
| - | ===== output of setcolor c example ===== | ||
| - | no example at the moment | ||