An open API service indexing awesome lists of open source software.

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)

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.

![wall-clock-side-by-side.gif](wall-clock-side-by-side.gif)