FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
190
Copyright © Bridgetek Limited
5.31
CMD_GRADIENT - draw a smooth color gradient
C prototype
void cmd_gradient( int16_t x0,
int16_t y0,
uint32_t rgb0,
int16_t x1,
int16_t y1,
uint32_t rgb1 );
Parameters
x0
x-coordinate of point 0, in pixels
y0
y-coordinate of point 0, in pixels
rgb0
Color of point 0, as a 24-bit RGB number. R is the most significant8 bits, B is
the least. So 0xff0000 is bright red.
x1
x-coordinate of point 1, in pixels