Skip to content

inathlia/paint

Repository files navigation

Computer Graphics Application

controllers

  • Left Button Click -> add point
  • Right Button Hold -> create rectangle selector
  • Left Button Hold -> drag selector to translade
  • Shift + Left Button Hold -> rotate selector
  • Ctrl + Left Button Hold -> resize selector

notes

  • interface.py
    • points are stored in self.points and self.selected_points on the order they were draw on the canvas

    • self.points array store the real value of the pixel, but when ploted with the Interface.update() function it is ronded since there's no float pixel values

    • rotation, scale and reflection take the object center as reference

    • can't have crossed lines/circles

libraries

  • tkinter
  • math

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages