Skip to content

This is a simple assignment for DDA, Bresenham's, circunference and line implementation. Will also implement translation, scaling and cropping.

License

Notifications You must be signed in to change notification settings

izabelacborges/cg-app-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Computer Graphics App

This is an assignment for my Computer Graphics class and I'll be implementing the DDA, Bresenham's, Parametric Equation, Circumference, Translation, Scaling, Rotation and Cropping algorithms.

This app is being made with python 3.6.1, and tkinter.

Setup

You should install Python 3.6.x

For Windows OS do it by clicking here.

For Linux systems, verify if your system already has python 3.6 installed by typing python --version and python3 --version on your terminal. If not, do it by folowing the next steps:

sudo apt-get update
sudo apt-get install python3

Verify the installation success by typing python3 --version again. Any problems with installation, follow the steps on my python introductory course here.

Run

Clone my repository to your computer by doing a git clone:

git clone https://github.com/izabelacborges/cg-app-python.git

And when on the root directory for my project, execute python3 main.py on your terminal.

Guidelines

  1. To use DDA Line plotting, fill the x1, y1, x2, y2 inputs and press the DDA button.
  2. To use Bresenham Line plotting, fill the x1, y1, x2, y2 inputs and press the Bresenham button.
  3. The Parametric Equation function is not implemented.
  4. To use Circumference plotting, fill the x1, y1, x2, y2 inputs and press the Circunferência button.
  5. The cropping/clipping function is not implemented.
  6. To use the Translation algorithm, fill the x1 and y1 inputs and press the Translação button.
  7. To use the Scaling algorithm, fill the x1 input and press the Escala button.
  8. To use the Rotation algorithm, fill the x1 input and press the Rotação button.
  9. Press Apagar to erase all things on screen.

About

This is a simple assignment for DDA, Bresenham's, circunference and line implementation. Will also implement translation, scaling and cropping.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages