GithubHelp home page GithubHelp logo

open-frameworks-drawing-app's Introduction

CS 126 FinalProject

Drawing Application Implementation

  1. Project Description
    This drawing application has the following features:
  • drawing - a user can draw an image of their choice (using the left mouse button), and also erase (using the right mouse button)
  • color - using the color slider, the user can change the color they are drawing in, according to the amount of red, green, blue, and alpha present in the color
  • manipulate - the user can manipulate the drawing using the buttons on the right, including flipping vertically and horizontally, rotating the image, and shifting it in all directions
  • save and open - the user can save and open their drawings using the text field and the corresponding buttons - the user just needs to type the name of the file they would like to save as/open in the text field and click the button of the task they would like to complete
  1. Application Loop
    The application is controlled by open frameworks. The main drawing application extends ofBaseApp, the base open frameworks application.
  • The main event loop is composed of:
    • draw() - which draws the background image and draws the loaded beginning image.
    • mousePressed() and mouseDragged() - which interprets and edits the drawing and the saved current 2D vector
  1. Libraries
    The drawing application uses the following libraries:
  • ofxGUI - provides usage of buttons and panels
  • ofColor - which allows the user to use as many colors as they choose in the drawing and provides an object for the color values to be stored into
  • ofxInputField - which allows the user to enter in the name of the file they would like to open/save as when saving or opening their drawing

open-frameworks-drawing-app's People

Contributors

arushia avatar

Watchers

 avatar  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.