https://github.com/phip1611/rust-clock
Basic analog wall clock (GUI)
https://github.com/phip1611/rust-clock
gui learning rust
Last synced: about 1 year ago
JSON representation
Basic analog wall clock (GUI)
- Host: GitHub
- URL: https://github.com/phip1611/rust-clock
- Owner: phip1611
- License: mit
- Created: 2024-09-22T09:00:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T12:32:36.000Z (almost 2 years ago)
- Last Synced: 2025-06-17T21:05:31.974Z (about 1 year ago)
- Topics: gui, learning, rust
- Language: Rust
- Homepage:
- Size: 798 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Clock - Digital Analog Wall Clock
This is a very basic example to show how `sin` and `cos` are used to calculate
the coordinates of the hour, minute, and second indicators of an analog wall
clock to create a digital representation. See `lib.rs`.
The drawing itself is done by the libs `minifb` and `minifb_geometry`.
Simply use `cargo run` to run the example. You need the dependencies of
[`minifb`](https://crates.io/crates/minifb) in your system to run everything.
