Professional Documents
Culture Documents
Course Title: Computer Graphics Laboratory Course Code: CSE-304 3 Year 1 Semester Examination 2022
Course Title: Computer Graphics Laboratory Course Code: CSE-304 3 Year 1 Semester Examination 2022
Submitted to-
Dr. Mohammad Shorif Uddin
Professor
Department of Computer Science and Engineering
Jahangirnagar University
&
Dr. Morium Akter
Associate Professor
Department of Computer Science and Engineering
Jahangirnagar University
Savar, Dhaka-1342
Source code:
#include <graphics.h>
getpixel(x, y) != fill_color)
putpixel(x, y, fill_color);
//driver code
int main()
circle(x, y, radius);
boundaryFill4(x, y, 6, 15);
delay(10000);
getch();
closegraph();
return 0;
Output:
Source code:
#include <graphics.h>
#include <stdio.h>
putpixel(x, y, new_col);
int main()
int y = 51;
int oldcolor = 0;
getch();
return 0;
Output:
Source code:
#include <iostream>
#include <graphics.h>
int Ax = 0, Ay = 0;
delay(5000);
closegraph();
int main() {
resizeTriangle(scale);
return 0;
Discussion