Phong Shading A more accurate method for rendering a polygon surface is to interpolate the normal vector and then apply the illumination…
circle generation algorithm
-
-
Input Devices The Input Devices are the hardware that is used to transfer transfers input to the computer. The data can be…
-
Computer Graphics Programs Write a Program to draw basic graphics construction like line, circle, arc, ellipse and rectangle. #include<graphics.h> #include<conio.h> void main()…
-
Output Devices It is an electromechanical device, which accepts data from a computer and translates them into form understand by users. Following…
-
Defining a circle using Polar Co-ordinates : The second method of defining a circle makes use of polar coordinates as shown in…
-
Interactive and Passive Graphics (a) Non-Interactive or Passive Computer Graphics: In non-interactive computer graphics, the picture is produced on the monitor, and…
-
Defining a circle using Polynomial Method: The first method defines a circle with the second-order polynomial equation as shown in fig: …
-
Matrix Representation of 2D Transformation Program to implement 2-D Transformations: #include<iostream.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<conio.h> class trans { float x[20],y[20],xm,ym,ref[2][2],shx,shy; int i,j,k,n;…
-
Random Scan and Raster Scan Display: Random Scan Display: Random Scan System uses an electron beam which operates like a pencil to…
- B.Tech / MCAComputer Graphics Tutorial
Computer Graphics | Midpoint Subdivision Line Clipping Algorithm
Mid Point Subdivision Line Clipping Algorithm: It is used for clipping line. The line is divided in two parts. Mid points of…