mp_traversals
Terrible Traversals
SolidColorPicker Class Reference

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

#include <SolidColorPicker.h>

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

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...
 
virtual HSLAPixel getColor (unsigned x, unsigned y)=0
 Select a color for the given point (x, y) All derived classes needs to implement this. More...
 

Detailed Description

A color picker class using solid color picking algorithm.

Constructor & Destructor Documentation

◆ SolidColorPicker()

SolidColorPicker::SolidColorPicker ( HSLAPixel  color)

SolidColorPicker constructor.

Member Function Documentation

◆ getColor()

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

Picks the color for pixel (x, y).

The color will be a constant for all the points

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.


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