Skip to content

An elm version of the RGB's clock that takes advantage of hexadecimal colors

License

Notifications You must be signed in to change notification settings

it6c65/hextime-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An elm version of the RGB's clock that takes advantage of hexadecimal colors

I saw this project implemented in JS by Jamel, where the time is represented like colors in the background in live time, so I realized that is a good project for practice some code and I wanted to make an elm version of that code.

With this simple project is easier to compare JS with Elm, since I use the standard library in Elm.

It's notable that Elm is more verbose (132 LoC) vs the JS version (6 LoC), but there is keep in mind that the JS version use the HTML DOM directly while Elm needs to create it (like React), but even with that in mind Elm keep to being larger, although for me the code is a lot of readable than JS version.

This a good didactic between both languages, besides, the logic that how works the time in Elm is something large and it's better explained in this guide

You can find the live here

About

An elm version of the RGB's clock that takes advantage of hexadecimal colors

Topics

Resources

License

Stars

Watchers

Forks