| 
				打卡等级:以坛为家III打卡总天数:701最近打卡:2025-10-31 16:20:18 论坛元老 
 
 
	积分6381 
 | 
 
 发表于 2024-11-28 09:51:54
|
显示全部楼层 
| 可以用这个程序。 /*****************************************************************************
 * @name       :void _draw_circle_8(int xc, int yc, int x, int y, u16 c)
 * @date       :2018-08-09
 * @function   :8 symmetry circle drawing algorithm (internal call)
 * @parameters :xc:the x coordinate of the Circular center
 yc:the y coordinate of the Circular center
 x:the x coordinate relative to the Circular center
 y:the y coordinate relative to the Circular center
 c:the color value of the circle
 * @retvalue   :None
 ******************************************************************************/
 void _draw_circle_8(int xc, int yc, int x, int y, u16 c)
 {
 GUI_DrawPoint(xc + x, yc + y, c);
 
 GUI_DrawPoint(xc - x, yc + y, c);
 
 GUI_DrawPoint(xc + x, yc - y, c);
 
 GUI_DrawPoint(xc - x, yc - y, c);
 
 GUI_DrawPoint(xc + y, yc + x, c);
 
 GUI_DrawPoint(xc - y, yc + x, c);
 
 GUI_DrawPoint(xc + y, yc - x, c);
 
 GUI_DrawPoint(xc - y, yc - x, c);
 }
 
 | 
 |