Skip to content

Implementation of Bresenham's line algorithm for plotting curves.

License

Notifications You must be signed in to change notification settings

liraymond04/olc-bresenham

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

olc-bresenham

Implementation of Bresenham's line algorithm for plotting curves.

Project using javidx9's olcPixelGameEngine

Controls

Button Action
Escape Quit
Left arrow Previous curve
Right arrow Next curve
Left click Plot point
Backspace Clear points

Building

Building is based on Moros1138's pge-template-project CMake files

Arch Linux

Install the required packages with the following command

sudo pacman -Sy base-devel cmake git libpng mesa

Generate project makefiles with CMake

cmake .

And build the project

make

Windows

Install a C++ compiler like MinGW

Generate project makefiles with CMake

cmake . -G "MinGW Makefiles"

And build the project

mingw32-make