|
MP4
Stacks and Queues
|
rainbowColorPicker: a functor that determines the color that should be used given an x and a y coordinate using a rainbow pattern. More...
#include "rainbowColorPicker.h"
Inheritance diagram for rainbowColorPicker:
Collaboration diagram for rainbowColorPicker:Public Member Functions | |
| rainbowColorPicker (long double freq_) | |
| Constructs a new rainbowColorPicker. More... | |
| virtual RGBAPixel | operator() (int x, int y) |
| Picks the color for pixel (x, y). More... | |
Public Member Functions inherited from colorPicker | |
| virtual | ~colorPicker () |
| Destructor: does nothing, but as it is virtual, you may overload it in derived classes if needed. More... | |
rainbowColorPicker: a functor that determines the color that should be used given an x and a y coordinate using a rainbow pattern.
| rainbowColorPicker::rainbowColorPicker | ( | long double | freq_ | ) |
Constructs a new rainbowColorPicker.
| freq_ | Frequency at which to cycle colors |
|
virtual |
Picks the color for pixel (x, y).
| x | The x coordinate to pick a color for. |
| y | The y coordinat to pick a color for. |
Implements colorPicker.