C and CPP graphics Archive

Color Font and Background Adding color Text in C
November 9, 2020
No Comments
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

Computer graphics Smiling face Animation program in C with source code
October 15, 2020
No Comments
Smiling face animation program in C Computer graphics Smiling face Animation program in C with source code and explanation of Every C Function with suitable Programming Example learn step by step Animation program in c with source code //C smiling face animation #include<graphics.h> #include<conio.h> #include<stdlib.h> main() { int gd = DETECT, gm, area, temp1,

How to make hardware Sound with Beep() in C ++ Function on Windows10
October 2, 2020
No Comments
Beep() in c HEY, this program may help you in generating a beep sound in your dos or Windows system. and how it’s work full explanation for Beep() in C++ How to make a Beep sound in C on Windows #include <iostream> #include<stdlib.h> #include<time.h> #include<conio.h> #include<windows.h> using namespace std; int main() { int tecla, m;

Computer graphics C program to show a man walking in rain with an umbrella
September 30, 2020
No Comments
C program to show a man walking in rain computer graphics program for a man walking in rain with an umbrella. learn step by step with a full explanation. Computer graphics C program to show a man walking in rain with an umbrella Computer graphics program for a man walking in rain with an umbrella #include<stdio.h> #include<graphics.h>

How to write C Programming code for blinking Text particular on screen
September 29, 2020
No Comments
C Programming code for blinking Text Write a C Programming code for blinking Text particular and continuously on the screen. Learn step by step C program to Blink a Text on screen #include <stdio.h> //to use

Sort Array in ascending order |String and Two dimensional function|
September 29, 2020
No Comments
Array in Ascending Order Write a Program “wap in C” and take Input in Array and Print IT in Ascending Order. Learn step by step Array in ascending order Sort array in ascending order #include<stdio.h> #include<conio.h> void main() { int a[5],j,i,s=0; clrscr(); printf(“\n Enter any element:- “); for(j=0;j<5;j++) { scanf(“%d“, &a[j]); s=s+a[j]; } for(i=0; i<s;

Write a C program to Draw A rainbow using Graphics in C examples PDF
September 28, 2020
No Comments
C program to Draw A rainbow A-C program to Draw a rainbow. This program would only work in the Turbo C compiler in the DOS-compatible machine. The Pdf link is Below the Image. Creating a Rainbow using Graphics Programming in C #include<stdio.h> #include<graphics.h> #include<dos.h> // function for making of rainbow void rainbow() { // auto

Write a simple graphics program to draw a circle in the circle in C using circle function
September 23, 2020
No Comments
Draw a circle in the circle in C Advance Circle Drawing graphics program in C using Circle(); function for Draw a circle in the circle in C. Circle function 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) {

2d transformation in computer graphics program in C and C++ Animation
September 23, 2020
No Comments
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
September 21, 2020
No Comments
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
- 1
- 2