Home > OS >  Have bosses know circle is drawn on the embedded C language code below, especially the definition im
Have bosses know circle is drawn on the embedded C language code below, especially the definition im

Time:10-08

Under-16 void LCD_FillCircle (under-16 x0, y0, under-16 r)//fill round
{
U32 I;
U32 imax=((int) (707) (int) r *)/1000 + 1;
U32 sqmax=(int) (int) r + r * (int) r/2;
Under-16 x=r;

LCD_DrawHLine (x0 - r, y0, x0 + r);

For (I=1; i<=imax; I++)
{
If ((I * I * x + x) & gt; Sqmax)
{
If (x> Imax)
{
LCD_DrawHLine (x0 - I + 1, + x, y0 x0 + I - 1);
LCD_DrawHLine (x0 - I + 1, y0 - x, x0 + I - 1);
}
X -;
}
LCD_DrawHLine (x0 - x, y0 + I, x0 + x);
LCD_DrawHLine (x0 - x, y0 -i, x0 + x);
}
}
  • Related