#include <fggradient.h>
Public Types | |
| enum | FGGradientMode { Wrap, Reflect, Repeat } |
| enum | FGGradientFunction { Linear, LinearXY, Radial, Diamond, Conic, Sqrt } |
Public Member Functions | |
| FGGradient (FGColor &_start_color, FGColor &_end_color) | |
| FGGradient (FGColor &_start_color, FGColor &_middle_color, FGColor &_end_color) | |
| void | SetFunction (FGGradientFunction f) |
| void | SetMode (FGGradientMode m) |
| void | Draw (FGDrawBuffer &image, FGPoint &_start_point, FGPoint &_end_point, FGRect *rectangle=0) |
| void | Draw (FGDrawBuffer &image, FGRect *rectangle=0) |
|
|
|
|
|
|
|
||||||||||||
|
Build bicolor gradient. |
|
||||||||||||||||
|
Build tricolor gradient. |
|
||||||||||||
|
Draw the rectangle with color gradient to the buffer. You can't set the start and the end point for gradient, it is the top left for start point and the bottom right for the end point.
|
|
||||||||||||||||||||
|
Draw the rectangle with color gradient to the buffer. You can set the start and the end point for gradient.
|
|
|
Set drawing function (Linear, LinearXY, Radial, Diamond, Conic or Sqrt).
|
|
|
Set wrapping mode ( Wrap, Reflect or Repeat ).
|
1.4.0