From 1e28ccf658e42121b64b4b30a761f33c2b379b31 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Mon, 7 Apr 2025 13:45:57 -0500 Subject: [PATCH] Update 'Analog Clock' --- Analog-Clock.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Analog-Clock.md b/Analog-Clock.md index f0bfe99..fdbdb2c 100644 --- a/Analog-Clock.md +++ b/Analog-Clock.md @@ -1,3 +1,5 @@ +# Analog Clock +## Setup Let's build an analog clock that shows three hands: A second, minute, and hour hand that dynamically update! Most analog clocks are circles, so we will use the `DrawCircle()` function to render one. Let's start with a basic OLC project template: @@ -37,6 +39,8 @@ int main() } ``` +## Clock Outline + Start by clearing the screen each frame and then drawing a circle with a white outline in the center of the screen. Position defines the center of the circle. Let's make the radius of the circle `100` pixels. We will do this in `OnUserUpdate()`: