Hello.
I need to play a little animation : I want to fill a rectangle at the bottom using an ellipse.
Here is my code :
GUI_SetColor(0);
GUI_DrawRect(100,100,200,150);
for (idx = 0; idx <100; idx++)
{
GUI_AA_FillEllipse(100+50,150+20-idx,50,20);
GUI_ClearRect(100,151,200,350);
GUI_ClearRect(100,0,200,99);
GUI_Delay(50);
}
while(1);
My Rectangle is filled , but I can see sometimes the ellipse before to be cleaned...
I think I need to use 2 buffers or Memdev service but I don't know how I can use it.
Is anybody can help me ?
Thanks a lot in advance.
I need to play a little animation : I want to fill a rectangle at the bottom using an ellipse.
Here is my code :
GUI_SetColor(0);
GUI_DrawRect(100,100,200,150);
for (idx = 0; idx <100; idx++)
{
GUI_AA_FillEllipse(100+50,150+20-idx,50,20);
GUI_ClearRect(100,151,200,350);
GUI_ClearRect(100,0,200,99);
GUI_Delay(50);
}
while(1);
My Rectangle is filled , but I can see sometimes the ellipse before to be cleaned...
I think I need to use 2 buffers or Memdev service but I don't know how I can use it.
Is anybody can help me ?
Thanks a lot in advance.