Skip to content

Simple project that I created for computer graphics class - DDA and WuRokne algorithms for drawing lines and queue based FloodFill to fill areas. Written in C, using allegro5 library.

esse/Basic-Primitives-Drawing-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Compile instructions:
gcc -lallegro_primitives -lallegro_main -lallegro -x c -std=c99 main.c -o flood

Requirements:
C compiler
Allegro5 library

INSTRUCTION
LPM - draw line
PPM - flood fill
ESC - Quit program
W - switch to draw lines using Wu Rokne algorithm
P - switch to draw lines using DDA algorithm
T - test DDA algorithm (should draw a square)
Y - test WuRokne algorithm (should draw a square)
B - benchmark of DDA and WuRokne algorithm (clears screen!)
C - clear screen

About

Simple project that I created for computer graphics class - DDA and WuRokne algorithms for drawing lines and queue based FloodFill to fill areas. Written in C, using allegro5 library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages