Skip to content

A C program for drawing pixels on screen at high refresh rates

License

Notifications You must be signed in to change notification settings

McrRaspJam/Pixels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

McrRaspJam Pixels

A C program for drawing pixels on screen at high refresh rates

Read the documentation

About

McrRaspJam Pixels provides a number of functions that abstract the functionality of the Simple DirectMedia Layer library. This allows you to create windows containing pixel graphics.

It was designed for use in Raspberry Pi workshops, but should run on any system capable of running SDL.

Installation

On a recent version of Raspbian, install the SDL library with the following commands:

$ sudo apt-get update
$ sudo apt-get install libsdl2-dev

On other distributions, ensure you have the GNU C compiler and libraries installed:

$ sudo apt-get install build-essential

Then, download and extract the latest file release from the GitHub Repo. You can compile the included program with the following command:

$ gcc -o main main.c pixels/canvas.c pixels/draw.c screen.c `sdl2-config --cflags --libs`