Beck Lavender

Game Programmer, UK

Menu

Skip to content
  • Home
  • About
  • Career
    • Freelance Programmer
    • Playtonic Games
    • 22cans
  • Projects
    • Lost Words: Beyond the Page
    • Yooka-Laylee
    • Godus
    • The Zelda Dungeon Generator
    • More…
  • Education
  • Blog
  • Contact

2D Sketchpad

University Project

University Project: Design and Implement an interactive 2D drawing application. Focuses on implementations of low-level algorithms like Bresenham’s line drawing and scanline fill. Developed on Windows platform, written in C++ using Win32 GDI.

FEATURES:
  • Scanline fill produces all concave and convex polygons, with or without interior holes. The algorithm does not fail in any special case.
  • Lines drawn with Bresenham’s midpoint line algorithm.
  • Circles drawn with Bresenham’s midpoint circle algorithm and 8 way symmetry.
  • Guidelines displayed when drawing polygons, lines, or any shapes.
TOOLS:
  • Clear canvas function
Varying thickness/colour:
  • Freehand pencil tool
  • Freehand eraser tool
  • Line drawing tool
Filled/unfilled, with various border thicknesses and different forecolours and backcolours:
  • Circles
  • Rectangles
  • User drawn polygons

Background colour also applies to any eraser lines.

Illustration of scanline algorithm's lack of special cases.

Post navigation

Rigid Body Simulator > →
  • Email
  • LinkedIn
  • Twitter