brush_enabled := true
and
gradient_enabled := true
Is this right? Will be brushed or gradient?
procedure TFT_Set_Brush(...);
- danilo.milovic
- mikroElektronika team
- Posts: 501
- Joined: 05 Dec 2016 14:59
Re: procedure TFT_Set_Brush(...);
Hi,
here's the link for example how to use TFT_Set_Brush();
http://download.mikroe.com/documents/co ... _set_brush
Your command needs to look like this:
Regards,
Danilo
here's the link for example how to use TFT_Set_Brush();
http://download.mikroe.com/documents/co ... _set_brush
Your command needs to look like this:
Code: Select all
// Enable gradient from black to white color, left-right orientation
TFT_Set_Brush(0, 0, 1, LEFT_TO_RIGHT, CL_BLACK, CL_WHITE);
Danilo
Re: procedure TFT_Set_Brush(...);
I know the correct command format.
Now I want to rewrite the standard libraries for use in your project (SSD1963 + FSMC). To rewrite the Feature I need to more accurately know the behavior of functions.
If I do brush_enabled: = true and gradient_enabled = three - how to behave in a function?
Do you understand Russian? Google translator is often translated incorrectly.
Now I want to rewrite the standard libraries for use in your project (SSD1963 + FSMC). To rewrite the Feature I need to more accurately know the behavior of functions.
If I do brush_enabled: = true and gradient_enabled = three - how to behave in a function?
Do you understand Russian? Google translator is often translated incorrectly.
- danilo.milovic
- mikroElektronika team
- Posts: 501
- Joined: 05 Dec 2016 14:59
Re: procedure TFT_Set_Brush(...);
Hi,
if you use following code:
so both brush_enabled : 1 and gradient_enabled : 1
picture of TFT is in attach, there you will see what you get, gradient goes from left to right from black to white color.
Regards,
Danilo
if you use following code:
Code: Select all
TFT_Set_Brush(1, CL_BLACK, 1, LEFT_TO_RIGHT, CL_BLACK, CL_WHITE);
TFT_Rectangle(0, 0, 320, 240);
picture of TFT is in attach, there you will see what you get, gradient goes from left to right from black to white color.
Regards,
Danilo
- Attachments
-
- tftphoto.zip
- (1.07 MiB) Downloaded 182 times