Skip to content

phip1611/rust-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 in your system to run everything.

wall-clock-side-by-side.gif

About

Basic analog wall clock (GUI)

Topics

Resources

License

Stars

Watchers

Forks