Skip to content

peplxx/pixl.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixl - A Low-Level Pixel Graphics Library

Pixl is a minimalist graphics library built on SDL2, focusing exclusively on pixel-level rendering operations. Unlike higher-level graphics libraries, Pixl provides direct pixel manipulation capabilities while abstracting away SDL2's complexity.

Examples

circle-drawer.webm

Just simple mouse event tracking + using layered render to display ui and drawings separately.

Core Concept

The library's fundamental approach is to work directly with pixels, providing:

  • Raw pixel buffer management
  • Multiple layer compositing
  • Pixel-by-pixel shape rendering
  • No texture or sprite operations - everything is rendered pixel by pixel

Features

  • Pure Pixel Operations: All rendering is done at the pixel level
  • Multi-Layer System: Up to 5 independent pixel layers with alpha compositing
  • Shape Primitives: Basic shapes (like lines and circles) implemented through pixel-perfect algorithms
  • Custom Framebuffer: Direct pixel buffer manipulation separate from SDL's renderer
  • Vector Math: Basic 2D vector operations for pixel calculations

Dependencies

  • SDL2 (only used for window management and final buffer presentation)

Releases

No releases published

Packages

No packages published