An Quad represents a rectangle with a uniform color or a color gradient.
You can set one color per vertex. The colors will smoothly fade into each other over the area of the quad. To display a simple linear color gradient, assign one color to vertices 0 and 1 and another color to vertices 2 and 3.
The indices of the vertices are arranged like this:
0 - 1
| / |
2 - 3
**Colors**
Colors in Sparrow are defined as unsigned integers, that's exactly 8 bit per color. The easiest way to define a color is by writing it as a hexadecimal number. A color has the following structure:
0xRRGGBB
That means that you can create the base colors like this:
0xFF0000 -> red
0x00FF00 -> green
0x0000FF -> blue