Giter Club home page Giter Club logo

easy-draw's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

awei0426

easy-draw's Issues

Better OOP Practices -- Shape Object

Yeah. This thing needs to be more abstract. I need to create a generic Shape parent class that the other shapes can inherit from so I can reduce this redundancy.

Suggestion for Code

There is only one large .py file. May I suggest creating a files folder and separating your code into multiple files. You can import them into the main file. This would improve organization. Other than that, I love this program. I am open to being added as a project contributor if you want.

Rectangle -- Option to rotate from top-left corner instead of center

When drawing different pictures, it can be useful and makes more sense to rotate a rectangle from the top-left corner -- the coordinate used to draw it. However, I don't want to change the .rotate() method completely for the Rectangle and make it only rotate from top-left as it makes sense for some animations and other things to rotate from center.

Probably best to add a boolean parameter option that forces it to rotate from top-left instead of center.

Oval object doesn't rotate properly

Because the rotate method just modifies the boundary box the oval was drawn in, it doesn't really rotate it. I need to find a way to draw the oval differently or manipulate the boundary box that makes the oval rotate.

Save Canvas -- Filename Dialog gets in the way of screenshot

When saving the canvas, the filename dialog gets in the way of the capture that grabs the canvas image. If you move the dialog off the canvas, it is not a problem. I saw this issue earlier in testing, and fixed it with a delay. The issue now is some systems (like a Coding Rooms or replit instance) don't have the same speed as my laptop and the issue still persists.

  1. I can delay the action more to ensure the dialog gets out of the way before screenshot.

OR

  1. Redesign how I get filename and maybe not use a dialog. Instead, instantiate and destroy a text entry each save.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.