https://github.com/varppi/asciiclock
A program that shows what hour it is on an ascii clock.
https://github.com/varppi/asciiclock
Last synced: 10 months ago
JSON representation
A program that shows what hour it is on an ascii clock.
- Host: GitHub
- URL: https://github.com/varppi/asciiclock
- Owner: varppi
- License: gpl-3.0
- Created: 2024-11-30T06:58:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-30T07:26:30.000Z (over 1 year ago)
- Last Synced: 2025-08-09T08:51:20.762Z (10 months ago)
- Language: C#
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AsciiClock
A program that shows what hour it is on an ascii clock. This was more of a technical challenge for myself than an actual useful tool.

## How it works
1. Program gets console height and uses `height/2` as the clock's radius.
2. Clock is generated line by line (`x = lineNumber > height/2 ? height - lineNumber : lineNumber`):

3. Clock hands are drawn
