Menu

C and CPP graphics Archive

Color Font and Background Adding color Text in C

Adding color Text in C In this article, we learn how to Display color font in the C programming language, without using getcolor() Function, Adding color Text in C like Opaque Text Color. Text Color In C #include<stdio.h> // back ground colours #define bgBlack “\e[40m” #define bgRed “\e[41m” #define bgGreen “\e[42m” #define bgYellow “\e[43m” #define

2d transformation in computer graphics program in C and C++ Animation

2d transformation in computer graphics program in c 2d transformation in computer graphics program in C and C++ animation program using initgraph(); function Graphics program Graphics program in c #include<stdio.h> #include<graphics.h> #include<conio.h> int main() { int gd=DETECT,gm; int i,j; initgraph (&gd, &gm, ” “); for ( i=200;i<400;i=i+25) { for( j=200; j<400; j=j+25) { circle(i, j,100);

How to change Background color in turbo C and C++ using Setbkcolor function

Background color in turbo C Here a Graphics program for you like Background color in turbo C. How to color the output of a program in C #include<stdio.h> #include<graphics.h> #include<conio.h> main() { int gd = DETECT, gm, drawing_color,x,y,s; initgraph(&gd,&gm,“C:\\TC\\BGI“); setbkcolor(2); printf(“\n Enter first Number:-“); scanf(“%d”,&x); printf(“\n Enter second Number:-“); scanf(“%d”,&y); s=x+y; printf(“\n Sum of two
Learn For Free.