void draw_fill_grad_rect ( float  x,
float  y,
float  width,
float  height,
u32  color1,
u32  color2,
u32  color3,
u32  color4 
)

Draw a multi-color rectangle

Example: Draw a rainbow of a rectangle!
 drawLine ( 0, 0, 480, 272, RGB(255,0,0), RGB(0,255,0), RGB(0,0,255), RGB(255,255,255));
Parameters:
x - Horizontal position.
y - Vertical position.
width - The width of the rectangle.
height - The height of the rectangle.
color1 - Color of the top left corner.
color2 - Color of the top right corner.
color1 - Color of the bottom right corner.
color2 - Color of the bottom left corner.

Definition at line 155 of file shape.c.

References CP_Vertex_2D::color, CP_Vertex_2D::x, CP_Vertex_2D::y, and CP_Vertex_2D::z.


Generated on Tue Mar 20 23:01:06 2007 for vLib by  doxygen 1.4.7