Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 894 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 894 Bytes

olcPGEX_AdditionalColours

This lightweight extension to the olcPixelGameEngine by Javidx9 provides additional pre-defined colours.

This is intended to be a community-driven project, so please feel free to create pull requests to define more colours. See CONTIBUTING.md for more information.

Usage

The header file should be included after the the Pixel Game Engine header. Once you have included the header file, you can access the colours and functions via the olc::Colours namespace.

For example:

// Use one of the color constants
Clear(olc::Colours::ORANGE);

// Create a color using the hsv color space, this one makes a nice orange color
auto hsvColor = olc::Colours::FromHsv(40, 1, 1);