User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:graphics.h:setcolor

This is an old revision of the document!


setcolor

 

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

#include<stdio.h> #include<windows.h> /*you have to call windows library with this code*/

main () {

SetConsoleTextAttribute(GetStdHandle (STD_OUTPUT_HANDLE),11); <fc #FF0000>/*the last number is the color*/</fc>

printf("  Hi, this is the your color  ");

getch();

}

/*I hope this will can help you*/

output of setcolor c example

  no example at the moment

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/graphics.h/setcolor.1430902638.txt · Last modified: 2024/02/16 01:03 (external edit)

Impressum Datenschutz