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()`: