GithubHelp home page GithubHelp logo

ahsansn / paint-graphic-editor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.69 MB

It is a graphic editor software where you are create drawings using simple rectangles, lines, and points.

C++ 100.00%
cpp rectangle start-drawing paint mouse-button stack arrow-keys drew

paint-graphic-editor's Introduction

Paint - Graphic Editor

Installation

Simply run Assg3_2ndTry.cbp to open project. If you don't have to means to open the project, use exe file to run the project executable, ie paint.exe

Description

As you create a rectangle, it needs to be stored in a linked list that behaves like a stack. If you view the current code, we create a rectangle and it goes away as soon as we draw a new rectangle. This should not happen because now we will save all the rectangles in the linked list. You will then need to go through the entire linked list and draw every rectangle. It behaves like a stack because the new rectangle will be drawn on top of the previous rectangle. Every time you draw something, it will have a random color.

You should draw the rectangle by default, but if you press ‘P’ you start drawing a Point on mouse click. If your press ‘L’ you will start drawing a line. At any time you press the ‘Down Arrow’ key, your drawn object will move down in the list. Suppose you drew a red rectangle and then drew a white rectangle on top of the red rectangle and then you press the down arrow key, the red rectangle will now be drawn on top of the white rectangle. The process will reverse if I now press the ‘Up Arrow’ key.

With the left mouse button we finish drawing a rectangle or any other object. With the right mouse button we should be able to undo what we have done so far, but by pressing the middle moose button we will be able to redo what we did in the past. In case you undo a few drawings and start drawing, then you will not be able to redo everything that was undone.

Screenshots

FamiChat
FamiChat
FamiChat
FamiChat

paint-graphic-editor's People

Contributors

ahsansn avatar

Stargazers

 avatar

Watchers

 avatar

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.