mp_traversals
Terrible Traversals
RainbowColorPicker Class Reference

A color picker class using rainbow color picking algorithm. More...

#include <RainbowColorPicker.h>

Inheritance diagram for RainbowColorPicker:
[legend]
Collaboration diagram for RainbowColorPicker:
[legend]

Public Member Functions

 RainbowColorPicker (double increment)
 RainbowColorPicker 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

double hue
 
double increment
 

Detailed Description

A color picker class using rainbow color picking algorithm.

Constructor & Destructor Documentation

◆ RainbowColorPicker()

RainbowColorPicker::RainbowColorPicker ( double  increment)

RainbowColorPicker constructor.

Member Function Documentation

◆ getColor()

HSLAPixel RainbowColorPicker::getColor ( unsigned  x,
unsigned  y 
)
virtual

Picks the color for pixel (x, y).

Parameters
xThe x coordinate to pick a color for.
yThe y coordinate to pick a color for.
Returns
The color selected for (x, y).

Implements ColorPicker.

Member Data Documentation

◆ hue

double RainbowColorPicker::hue
private

◆ increment

double RainbowColorPicker::increment
private

The documentation for this class was generated from the following files: