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.

About

Repo for line drawing algos in python

Topics

Resources

Stars

Watchers

Forks

Languages