Skip to content

Pixel Pad ​

Pixel Pad is a downloadable C++ drawing application built around clean architecture, test-driven development, and a layered application design.

Unlike an isolated graphics experiment, Pixel Pad is a complete application with a presentation layer, application services, core drawing logic, infrastructure utilities, automated tests, and a packaged Windows release.

Project Goals ​

Pixel Pad was built to explore how clean architecture can be applied to a native C++ desktop application.

The project focuses on:

  • C++ application architecture
  • Canvas and pixel manipulation
  • Drawing operations
  • Layered project structure
  • Test-driven development
  • Separation of UI, application logic, and core domain logic
  • CMake-based native build setup
  • Packaged Windows distribution

Technical Stack ​

  • C++
  • CMake
  • Vcpkg
  • SDL3
  • GoogleTest
  • Layered architecture
  • Windows x64 release build

Features ​

Pixel Pad supports core drawing operations, including:

  • Drawing individual pixels
  • Drawing lines
  • Resizing the canvas
  • Filling the canvas
  • Clearing the canvas
  • Retrieving pixel colors
  • Rendering the canvas through a desktop presentation layer

These features are intentionally small, but they are built around clear application boundaries instead of being placed directly inside the UI code.

Architecture ​

Pixel Pad is organized into separate layers:

txt
Presentation
   ↓
Application
   ↓
Core
   ↓
Infrastructure

Core ​

The Core layer contains the fundamental drawing model and canvas behavior.

This is where the application represents the canvas and handles low-level pixel manipulation rules.

Application ​

The Application layer coordinates use cases through services such as drawing operations.

This keeps the UI from directly owning the business logic of how drawing commands are executed.

Infrastructure ​

The Infrastructure layer contains supporting utilities and implementation details used by the rest of the application.

Presentation ​

The Presentation layer is the desktop application entry point.

It owns the window, input handling, rendering loop, and interaction with the user while delegating drawing behavior to the application and core layers.

Why The Architecture Matters ​

The main value of Pixel Pad is not that it can draw pixels.

The value is that it demonstrates how I structure a native C++ application so that the drawing logic, UI layer, and supporting infrastructure are separated from each other.

That separation makes the application easier to test, easier to reason about, and easier to extend.

Instead of putting all behavior directly into the window loop, Pixel Pad uses a layered structure that keeps the core drawing behavior independent from the presentation layer.

Test-Driven Development ​

Pixel Pad was built with a TDD-first mindset.

The drawing behavior is covered through automated tests around the core and application layers. This allows the canvas and drawing operations to be validated without relying entirely on manual UI testing.

Test coverage focuses on:

  • Drawing logic
  • Canvas behavior
  • Pixel color retrieval
  • Edge cases around drawing operations
  • Application service behavior

Downloadable Release ​

Pixel Pad includes a prebuilt Windows x64 release.

The release includes:

  • PixelPad.Presentation.exe
  • SDL3.dll
  • Application assets

No installation is required.

What This Project Demonstrates ​

Pixel Pad demonstrates:

  • Building a native C++ desktop application
  • Applying clean architecture outside of web/backend systems
  • Using TDD with C++
  • Separating rendering/input code from application logic
  • Managing a multi-project CMake solution
  • Shipping a downloadable Windows application

Repository ​

View Pixel Pad on GitHub

Download the latest Windows release