[example] Clock

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
pakoskyfrog
Citizen
Posts: 62
Joined: Mon Feb 04, 2013 12:54 pm
Location: France

[example] Clock

Post by pakoskyfrog »

Hi !

I noticed that every examples given on the wiki are very simple. That how should it be since it is for learning purpose... However some simple examples could be added to the list, so we could go one step further.
I've got some ideas i would like to propose, and here is the first one : a clock !
It was made to show how to handle polar to rectangular conversions and how to retrieve time informations.
A simple clock
A simple clock
Capture-clock.PNG (56.85 KiB) Viewed 2016 times
I tried to make it simple to understand, no classes, one file, ...
Obviously, i will be happy to modify it, add comments on how i managed to do the conversions (i didn't explained the maths inside) since it's supposed to help as most of people as possible ^^

So, what do you think ?
Attachments
clock.love
example clock 1
(1.04 KiB) Downloaded 216 times
codyklaiss
Prole
Posts: 5
Joined: Thu Dec 12, 2013 10:25 pm
Location: Ohio, USA

Re: [example] Clock

Post by codyklaiss »

I know this is an old post, but it helped me a lot. Couldn't find any other post that explained how to get the date and time :death: Thank you so much for this! :awesome: Awesome job.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests