Implements a simple drawing api
TODO: Add a representative image for your project here
Windows
Open git bash to the directory containing this repository.
canvas-drawer $ mkdir build
canvas-drawer $ cd build
canvas-drawer/build $ cmake -G "Visual Studio 16 2019" ..
canvas-drawer/build $ start Draw-2D.sln
Your solution file should contain two projects: pixmap_art
and pixmap_test
.
To run from the git bash command shell,
canvas-drawer/build $ ../bin/Debug/draw_test
canvas-drawer/build $ ../bin/Debug/draw_art
macOS
Open terminal to the directory containing this repository.
canvas-drawer $ mkdir build
canvas-drawer $ cd build
canvas-drawer/build $ cmake ..
canvas-drawer/build $ make
To run each program from build, you would type
canvas-drawer/build $ ../bin/draw_test
canvas-drawer/build $ ../bin/draw_art
- Lines
- Triangles
- Circle
- Rectangles
- Star
- Curve (these are modification for circle like roses)
- Point
- drwaing different shapes like rectangle, circle, star, and flowers
- draw lines with width
- Point Primitive
- Support Filled and outlined Shapes
- Support different blend modes, such as add, difference, and multiply
- make it easy for users to specify gradients
- Support alpha blending
TODO: Show artworks using your class
- Lines draw (Simple)
- Lines with Interpolation
- Lines with Width
- Triangles with interpolation
4.Triangle Outlined
- Rectangle Filled
- Rectangle Outlined
- Circle Filled
- Circle Outlined
- Star Filled
- Star UnFilled
- curves filled
- Curve Outlined
- Point Primitive
##Unique Images
- I first drew Interpolated vertical lines. Then, on top of that, I drew a circle in the middle , on top of circle I drew a outlined star, and outlined it with rectangles of varying widths.
2.For this one, I created four isosceles tringles with their tip sharing one point. Then I randomly created many copies of the same image.
- Finally, For this last image, I created both horizontal and vertical interpolated lines. On top of this background I drew a curve in the middle of a square. Then I created multiple copies of the same image.