Page 1 of 1

[example] Clock

Posted: Sat Feb 23, 2013 11:43 am
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 2019 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 ?

Re: [example] Clock

Posted: Tue Jan 14, 2014 2:32 am
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.