mp_traversals
Terrible Traversals
|
A color picker class using solid color picking algorithm. More...
#include <SolidColorPicker.h>
Public Member Functions | |
SolidColorPicker (HSLAPixel color) | |
SolidColorPicker constructor. More... | |
HSLAPixel | getColor (unsigned x, unsigned y) |
Picks the color for pixel (x, y). More... | |
Public Member Functions inherited from ColorPicker | |
virtual | ~ColorPicker () |
Class destructor. More... | |
Private Attributes | |
HSLAPixel | color |
A color picker class using solid color picking algorithm.
SolidColorPicker::SolidColorPicker | ( | HSLAPixel | color | ) |
SolidColorPicker constructor.
|
virtual |
Picks the color for pixel (x, y).
The color will be a constant for all the points
x | The x coordinate to pick a color for. |
y | The y coordinate to pick a color for. |
Implements ColorPicker.