Wednesday, November 4, 2015

How to make a simple Analog Clock

http://lazplanet.blogspot.co.id/2014/06/how-to-make-simple-analog-clock.html

Digital clocks are cool. But Analog clocks are cooler... when you make them yourself! In this little article we are gonna create an analog clock!

Although digital clocks are the trend these days, analog clocks also hold a very special place in our hearts. Many luxury brands are still selling analong clocks. (If you are interested about digital clocks, see this previous tutorial on making a digital clock.)

No matter how much old the layout is, there is something special about the analog clocks that ticks with its hands. Even in the digital Desktops, we seems to prefer a digital clock widget. That's another topic. But to get you started I show you a basic analog clock that you can make yourself, by hand. I mean hand-coding. ;)

We will draw the entire interface with code, so it should be super lightweight and a good source of reference too.

Take a look at our final result.

A cross platform analog clock project made with Lazarus (Free Pascal)


This clock is not written by me from scratch. Actually, I have translated it from another java source code written by Abhishek Dubey and converted to Free Pascal to make it available for Lazarus. I am thankful to him for writing the code in simple words. ;)

http://lazplanet.blogspot.co.id/2014/06/how-to-make-simple-analog-clock.html