Skip to content

AlterEgoIV/olcPGEX_Arc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

olcPGEX_Arc

An extension to the olcPixelGameEngine created by Javidx9 which provides additional drawing routines for rendering circular arcs of variable dimension, colour and resolution.


Usage

To use this extension add the olcPGEX_Arc.h file to your project and include the header like so

#define OLC_PGEX_ARC
#include "olcPGEX_Arc.h"

Draw arc outline

olc::Arc::Draw(ScreenWidth() * .5, ScreenHeight() * .5, 200, 3.14159 * .5, 3.14159 * 1.5, olc::YELLOW);

Arc Outline

Draw filled arc

olc::Arc::Fill(ScreenWidth() * .5, ScreenHeight() * .5, 200, 3.14159 * 1.75, 3.14159 * 1.5, olc::CYAN);

Filled Arc

About

Arc drawing routines for the olcPixelGameEngine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages