- First complete version of firmware. Currently being tested in the rehearsal room
- Added bunch of screens, fonts and images - Added script to read out frame buffer (function currently disabled in Firmware)
This commit is contained in:
@@ -526,16 +526,18 @@ void Display_Shapes_Draw_Arc_Frame(int16_t center_x, int16_t center_y, int16_t r
|
||||
}
|
||||
|
||||
float Angle_Step = (float)(angle_end - angle_start) / (float)steps;
|
||||
|
||||
for (float i = angle_start; i <= angle_end; i = i + Angle_Step)
|
||||
{
|
||||
|
||||
float Angle = angle_start;
|
||||
for (int i = 0; i <= steps; i++)
|
||||
{
|
||||
if(thickness == 1) {
|
||||
Display_Shapes_Draw_Pixel_Safe(center_x + cos(i*DEG2RAD) * radius, center_y + sin(i*DEG2RAD) * radius, color);
|
||||
Display_Shapes_Draw_Pixel_Safe(center_x + cos(Angle*DEG2RAD) * radius, center_y + sin(Angle*DEG2RAD) * radius, color);
|
||||
}
|
||||
else {
|
||||
Display_Shapes_Draw_Circle_Filled(center_x + cos(i*DEG2RAD) * radius, center_y + sin(i*DEG2RAD) * radius, thickness >> 1, color);
|
||||
Display_Shapes_Draw_Circle_Filled(center_x + cos(Angle*DEG2RAD) * radius, center_y + sin(Angle*DEG2RAD) * radius, thickness >> 1, color);
|
||||
}
|
||||
|
||||
Angle += Angle_Step;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user