Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 907 Bytes

README.md

File metadata and controls

39 lines (22 loc) · 907 Bytes

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.