MP4
Stacks and Queues
|
solidColorPicker: a functor that determines the color that should be used given an x and y coordinate using a solid pattern. More...
#include "solidColorPicker.h"
Public Member Functions | |
solidColorPicker (RGBAPixel fillColor) | |
Constructs a new solidColorPicker. More... | |
virtual RGBAPixel | operator() (int x, int y) |
Picks the color for pixel (x, y). More... | |
![]() | |
virtual | ~colorPicker () |
Destructor: does nothing, but as it is virtual, you may overload it in derived classes if needed. More... | |
solidColorPicker: a functor that determines the color that should be used given an x and y coordinate using a solid pattern.
You can create private helper functions inside this class, as well as local storage, if necessary. Remember to overload a destructor if you need to.
solidColorPicker::solidColorPicker | ( | RGBAPixel | fillColor | ) |
Constructs a new solidColorPicker.
fillColor | The color for this color picker. |
|
virtual |
Picks the color for pixel (x, y).
Simply returns the same color (used to construct the picker) all of the time.
Implements colorPicker.