#include <gradient.h>
Public Types | |
| typedef GradientCPoint | CPoint |
Public Member Functions | |
| Gradient () | |
| Gradient (const Color &c1, const Color &c2) | |
| Two-Tone Color Gradient Convience Constructor. | |
| Gradient (const Color &c1, const Color &c2, const Color &c3) | |
| Three-Tone Color Gradient Convience Constructor. | |
| void | sync () |
| Alias for sort (Implemented for consistancy). | |
| void | sort () |
| You should call this function after changing stuff. | |
| Color | operator() (const Real &x, float supersample=0) const |
| iterator | proximity (const Real &x) |
| Returns the iterator of the CPoint closest to x. | |
| const_iterator | proximity (const Real &x) const |
| Returns the const_iterator of the CPoint closest to x. | |
| iterator | find (const UniqueID &id) |
| Returns the iterator of the CPoint with UniqueID id. | |
| const_iterator | find (const UniqueID &id) const |
| Returns the const_iterator of the CPoint with UniqueID id. | |
|
|
|
|
|
|
|
||||||||||||
|
Two-Tone Color Gradient Convience Constructor.
|
|
||||||||||||||||
|
Three-Tone Color Gradient Convience Constructor.
|
|
|
Alias for sort (Implemented for consistancy).
|
|
|
You should call this function after changing stuff.
|
|
||||||||||||
|
As a future optimization, this could be performed faster using a binary search. |
|
|
Returns the iterator of the CPoint closest to x.
|
|
|
Returns the const_iterator of the CPoint closest to x.
|
|
|
Returns the iterator of the CPoint with UniqueID id.
|
|
|
Returns the const_iterator of the CPoint with UniqueID id.
|
1.4.6