FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
122
Copyright © Bridgetek Limited
4.26
COLOR_RGB
Set the current color red, green and blue
Encoding
31 24 23 16 15 8 7 0
0x04
Red
Blue
Green
Parameters
red
Red value for the current color. The initial value is 255
green
Green value for the current color. The initial value is 255
blue
Blue value for the current color. The initial value is 255
Description
Sets red, green and blue values of the FT800 color buffer which will be applied to the
following draw operation.
Examples
Drawing three characters with different colors:
dl( BEGIN(BITMAPS) );
dl( VERTEX2II(50, 38, 31, 0x47) );
dl( COLOR_RGB( 255, 100, 50 ) );
dl( VERTEX2II(80, 38, 31, 0x47) );
dl( COLOR_RGB( 50, 100, 255 ) );
dl( VERTEX2II(110, 38, 31, 0x47) );
Graphics context
The values of red, green and blue are part of the graphics context, as described in
section 4.1
See also
COLOR_A