Question: Practical lab: Computer Graphics Sheet 4: Chapter 3: 2D GRAPHICS ALGORITHMS Line Drawing - Analytical Method Practice : . Write a program that asks the
Practical lab: Computer Graphics Sheet 4: Chapter 3: 2D GRAPHICS ALGORITHMS Line Drawing - Analytical Method Practice : . Write a program that asks the user to introduce two end points of a line and draw this line using Analytical Method (Ref: slide 67). Note: Use the delay function to delay the CPU execution time. Use putpixel function(-setpixel in OpenGl library). PUTPIXEL Putpixel places a pixel at a specified point. Decleration Void far putpixel (int x, int y, int color) Remarks Putpixel plots a point in the color defined at (x, y). Return value Putpixel does not return. . Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
