MP4
Stacks and Queues
rainbowColorPicker Class Reference

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...
 

Detailed Description

rainbowColorPicker: a functor that determines the color that should be used given an x and a y coordinate using a rainbow pattern.

Author
CS 225 Staff
Date
Fall 2010

Constructor & Destructor Documentation

rainbowColorPicker::rainbowColorPicker ( long double  freq_)

Constructs a new rainbowColorPicker.

Parameters
freq_Frequency at which to cycle colors

Member Function Documentation

RGBAPixel rainbowColorPicker::operator() ( int  x,
int  y 
)
virtual

Picks the color for pixel (x, y).

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

Implements colorPicker.


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