Skip to content

GUI app with implementation of basic vector graphics algorithms in two dimensional space, using single-pixel operations

Notifications You must be signed in to change notification settings

buensons/cg-2d-vector-graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Vector Graphics Editor

Simple 2D graphics editor, which implements the following algorithms:

  • Line drawing: Bresenham's symmetric midpoint line
  • Line thickness: Copying pixels
  • Circle: Midpoint circle
  • Rectangles and polygons: just a sequence of Bresenham's lines

Clipping and Filling:

  • Polygon clipping: Sutherland-Hodgman algorithm
  • Polygon filling: Scanline with Active Edge Table
  • General filling: 4-way boundary fill algorithm (not integrated yet)

alt text

Polygon Clipping (Sutherland-Hodgman algorithm)

Before: alt text

After: alt text

Filling with patterns:

alt text

About

GUI app with implementation of basic vector graphics algorithms in two dimensional space, using single-pixel operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages