Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
601
Description 
gradient_color_to
: sets the ending gradient color. 
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
‘ Enable gradient from black to white color, left-right orientation
TFT_Set_Brush(0, 0, 1, LEFT_TO_RIGHT, CL_BLACK, CL_WHITE)
Value
Description
CL_AQUA
Aqua color
CL_BLACK
Black color
CL_BLUE
Blue color
CL_FUCHSIA
Fuchsia color
CL_GRAY
Gray color
CL_GREEN
Green color
CL_LIME
Lime color
CL_MAROON
Maroon color
CL_NAVY
Navy color
CL_OLIVE
Olive color
CL_PURPLE
Purple color
CL_RED
Red color
CL_SILVER
Silver color
CL_TEAL
Teal color
CL_WHITE
White color
CL_YELLOW
Yellow color
TFT_Line
Prototype
sub procedure TFT_Line(dim x1, y1, x2, y2 as integer)
Returns
Nothing.
Description Draws a line from (x1, y1) to (x2, y2).
Parameters: 
x1
: x coordinate of the line start. 
y1
: y coordinate of the line end. 
x2
: x coordinate of the line start. 
y2
: y coordinate of the line end. 
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Line(0, 0, 239, 127)