Skip to content

chakri68/line-drawing-algos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Turtle Line Drawing Algorithms 🐢

This repo contains python codes (using turtle) I wrote for my Computer Graphics course.

Line Drawing Algorithms 📏

  • DDA
  • DDA using Fixed Point Arithmetic
  • Bresenham

LineDrawingStrategy

file: line_drawing_strategy.py

The abstract class for all line drawing algorithms.

DDA

file: DDA.py

The implementation of DDA algorithm.

FixedPointArithmeticDDA

file: FixedPointArithmeticDDA.py

The implementation of DDA algorithm using fixed point arithmetic.

Bresenhams

file: Bresenhams.py

The implementation of Bresenham's algorithm.

Getting Started 🚀

  1. Clone this repo to your local machine.
  2. Make sure you have Python installed.
  3. Run main.py to see the results.