ofxAlbers
A colour addon for OpenFrameworks
|
Functionality for constructing and manipulating Triadic colour schemes. More...
#include <TriadPalette.h>
Public Member Functions | |
SharedPtrColVec | createPalette (const ofColor &_seedColour) |
Main method for creating Triad colour schemes from a seed colour. More... | |
TriadPalette () | |
Construct an Triad Palette object and set relevant vars. | |
TriadPalette (const TriadPalette &old) | |
TriadPalette's copy constructor. Creates a 'unique' shared pointer from the old one as we don't want it to point to the previous instantiation's 'colours'. | |
![]() | |
TheoryPalette () | |
Constructor used to instantiate member objects, viz. 'colours'. | |
void | populatePalette (const ColVec &oldVec) |
Populates the colours vector. More... | |
SharedPtrColVec | generateRandom () |
Generate a random colour scheme. Useful for quickly generating pleasing colours to use. | |
![]() | |
ColourPalette () | |
Constructor used to instantiate member objects, viz. 'colours'. | |
ColourPalette (const ColourPalette &old) | |
ABS's copy constructor. Creates a 'unique' shared pointer from the old one as we don't want it to point to the previous instantiation's 'colours'. | |
void | operator= (const ColourPalette &old) |
ABS's assignment operator. Creates a 'unique' shared pointer from the old one as we don't want it to point to the previous instantiation's 'colours'. | |
SharedPtrColVec | getPalette () const |
Generic colour scheme getter. Returns a shared pointer to the colour scheme itself. More... | |
void | sortPalette (string channel="hue") |
Used to sort the palette of colours based on chosen channel. More... | |
void | darken (unsigned int percent) |
Used to darken a colour scheme by a given percentage. More... | |
void | lighten (unsigned int percent) |
Used to lighten a colour scheme by a given percentage. More... | |
void | saturate (unsigned int percent) |
Used to saturate a colour scheme by a given percentage. More... | |
void | desaturate (unsigned int percent) |
Used to desaturate a colour scheme by a given percentage. More... | |
void | adjustHue (int percent) |
Used to adjust the hue by a given percentage - n.b. can be a negative value. More... | |
Additional Inherited Members | |
![]() | |
static ofColor | darken (ofColor &col, unsigned int percent) |
Used to darken a colour by a given percentage. More... | |
static ofColor | lighten (ofColor &col, unsigned int percent) |
Used to lighten a colour by a given percentage. More... | |
static ofColor | saturate (ofColor &col, unsigned int percent) |
Used to saturate a colour by a given percentage. More... | |
static ofColor | desaturate (ofColor &col, unsigned int percent) |
Used to desaturate a colour by a given percentage. More... | |
static ofColor | adjustHue (ofColor &col, int percent) |
Used to adjust the hue by a given percentage - n.b. can be a negative value. More... | |
![]() | |
SharedPtrColVec | colours |
stores the of representation of the generated colours. | |
ofColor | seedColour = ofColor(255, 255, 255) |
the base colour with which to generate a scheme from. | |
Functionality for constructing and manipulating Triadic colour schemes.
|
virtual |
Main method for creating Triad colour schemes from a seed colour.
_seedColour | The ofColor seed/base colour with which to construct the palette from. |
Implements TheoryPalette.