Coder Social home page Coder Social logo

2d-graphics-package's Introduction

2D Graphics Package

image

Brief

This project is an implementation of a 2D graphics package in C++. It provides various functionalities for drawing and manipulating shapes using object-oriented programming principles. The package supports the following features:

  • Changing the background of the window to white
  • Modifying the shape of the window mouse
  • Interacting with the window using only the mouse
  • Combining the console and window functionalities
  • Choosing the shape color before drawing from the menu
  • Clearing the screen from shapes
  • Saving the data in the screen to a file
  • Loading data from files
  • Implementing line algorithms (DDA, Midpoint, and parametric)
  • Implementing circle algorithms (Direct, Polar, Iterative Polar, Midpoint, and Modified Midpoint)
  • Filling a circle with lines after selecting a filling quarter from the user
  • Filling a circle with other circles after selecting a filling quarter from the user
  • Filling a square with a Hermit Curve (Vertical)
  • Filling a rectangle with a Bezier Curve (Horizontal)
  • Convex and Non-Convex Filling Algorithm
  • Recursive and Non-Recursive Flood Fill
  • Cardinal Spline Curve
  • Ellipse Algorithms (Direct, Polar, and Midpoint)
  • Clipping algorithms using a rectangle or square as a Clipping Window (Point, Line, Polygon)

Getting Started

To use this 2D graphics package, you can clone the repository and compile the C++ source files.

Screenshots

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

๐Ÿ‘ค Michael Maher

Show your support

Please โญ๏ธ this repository if this project helped you!

Buy Me A Coffee

๐Ÿ“ License

This project is licensed under the MIT License.

2d-graphics-package's People

Contributors

michael-m-aher 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.