Update shapes_digital_clock.c

This commit is contained in:
Ray
2025-11-18 21:14:48 +01:00
parent c7c6aaf156
commit e6ef99275a

View File

@ -284,11 +284,13 @@ static void DrawDisplaySegment(Vector2 center, int length, int thick, bool verti
if (!vertical) if (!vertical)
{ {
// Horizontal segment points // Horizontal segment points
// 3___________________________5 /*
// / \ 3___________________________5
// /1 x 6\ / \
// \ / /1 x 6\
// \2___________________________4/ \ /
\2___________________________4/
*/
Vector2 segmentPointsH[6] = { Vector2 segmentPointsH[6] = {
(Vector2){ center.x - length/2.0f - thick/2.0f, center.y }, // Point 1 (Vector2){ center.x - length/2.0f - thick/2.0f, center.y }, // Point 1
(Vector2){ center.x - length/2.0f, center.y + thick/2.0f }, // Point 2 (Vector2){ center.x - length/2.0f, center.y + thick/2.0f }, // Point 2