Graphics program for man walking C and C++ Computer Graphics

Graphics program for man walking

#include <graphics.h> #include <conio.h> #include <dos.h> int main() { int gd = DETECT, gm; int x, y = 300; // base Y position for walking initgraph(&gd, &gm, “”); for (x = 50; x <= 500; x += 10) { cleardevice(); // Draw ground line(0, y+50, getmaxx(), y+50); // Draw head setcolor(WHITE); circle(x, y-40, 15); // […]

program for windmill rotation C and C++ Computer Graphics

program for windmill rotation

#include <graphics.h> #include <conio.h> #include <math.h> #include <dos.h> #define PI 3.1416 int main() { int gd = DETECT, gm; int xc = 320, yc = 240; // center of rotation (windmill hub) int length = 100; // blade length float angle = 0; // rotation angle initgraph(&gd, &gm, “”); while (!kbhit()) { // loop until […]

Computer Graphics

Liquid Crystal Display

What is a Liquid Crystal Display (LCD)? A Liquid Crystal Display (LCD) is a flat-panel display technology widely used in electronic devices such as calculators, televisions, laptops, digital watches, and smartphones. It works by using the light-modulating properties of liquid crystals that do not emit light directly but instead use a backlight or reflector to […]

Computer Graphics

Light Emitting Diode

What is a Light Emitting Diode (LED)? A Light Emitting Diode (LED) is a semiconductor device that emits light when an electric current passes through it. Unlike traditional incandescent bulbs, LEDs do not rely on heating a filament. Instead, they produce light through a process called electroluminescence, making them more energy-efficient, durable, and long-lasting. How […]

Computer Graphics

Thin Film Electroluminescent Displays

What are Thin Film Electroluminescent Displays (TFEL)? A Thin Film Electroluminescent Display (TFEL) is a flat-panel display technology that produces light by applying an electric field across a thin phosphor layer placed between two electrodes. Unlike LCDs (Liquid Crystal Displays) that rely on backlighting, TFELs are self-emissive, meaning they generate light directly, ensuring high brightness, […]

Computer Graphics

Plasma Panels displays

What is a Plasma Panel Display? A Plasma Panel Display (PDP) is a flat-panel display technology that uses ionized gases (plasma) to produce images. Each pixel in a plasma display consists of tiny cells filled with noble gases (neon, xenon) and a small amount of mercury. When an electric voltage is applied, these gases ionize […]

Computer Graphics

Flat Panel Display

What is a Flat Panel Display? A Flat Panel Display (FPD) is an advanced display technology used to present visual content in a slim, lightweight, and energy-efficient format. Unlike older Cathode Ray Tube (CRT) displays, flat panel displays do not rely on bulky vacuum tubes. Instead, they use modern electronic technologies such as liquid crystals, […]

Computer Graphics

Shadow-mask technique

The shadow-mask technique is a widely used method in Cathode Ray Tube (CRT) displays and early color television systems. It plays a crucial role in producing sharp, vibrant images by ensuring that each electron beam strikes the correct color phosphor on the screen. What is the Shadow-Mask Technique? In CRT displays, three separate electron guns […]