FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
191
Copyright © Bridgetek Limited
y1
y-coordinate of point 1, in pixels
rgb1
Color of point 1
Description
All the color's step values are calculated based on smooth curve interpolated from
the RGB0 to RGB1 parameter. The smooth curve equation is independently
calculated for all three colors and the equation used is R0 + t * (R1 - R0), where t is
interpolated between 0 and 1. Gradient must be used with Scissor function to get
the intended gradient display.
Command layout
+0
CMD_GRAGIENT(0xffffff0b)
+4
X0
+6
Yo
+8
RGB0
+12
X1
+14
Y1
+16
RGB1
Examples
A horizontal gradient from blue to red
cmd_gradient(0, 0, 0x0000ff, 160, 0,
0xff0000);