| forum.getinpulse.com http://www.getinpulse.com/hack/forum/ |
|
| Lunar phase (Day 30) http://www.getinpulse.com/hack/forum/viewtopic.php?f=7&t=303 |
Page 1 of 1 |
| Author: | hudson [ Mon May 30, 2011 7:04 pm ] |
| Post subject: | Lunar phase (Day 30) |
The final watch in my 30-days of watches: a lunar phase with sunrise/sunset on a 24-hour analog dial. I'm a bit late in posting this one due to work constraints and some technical issues. There are some new techniques demonstrated in the code: 8-bit grayscale images for the phases are packed into an RGB image so that the resource packer can handle it, the sunrise/sunset times for the local timezone are packed into a fake PNG so that they will appear as a resource in the inpulse_resources.bin file, and the draw_line_bg() function will replace a previously drawn line with pixels from the background image instead of just redoing them in black. Later in the week I hope to make an omnibus post with some lessons learned and hopefully refactor a bunch of the code into libraries that will be useful to other programmers on the inPulse platform. It has been a very fun, challenging month! Video: http://www.flickr.com/photos/osr/577935 ... 084215019/ (showing demo mode of moon phase changing since tonight's new moon doesn't make for good video) Source: http://bitbucket.org/hudson/watches/src/tip/lunar/ |
|
| Author: | Johan [ Thu Jun 02, 2011 6:11 pm ] |
| Post subject: | Re: Lunar phase (Day 30) |
Very nice watch app Hudson and congrats on creating this many watch apps in such a short amount of time. I looked like a near impossible challenge but you dit it - congrats! Can't wait to see what else you're going to develop |
|
| Page 1 of 1 | All times are UTC - 8 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|