Closed Jnmattern closed 10 years ago
I think this might be the one. Checkout the larger arrows I sent you, they keep their shape better during the rotation.
I've pushed a version with hands! I'll make the images smaller, they are bit too close to the clock.
Thanks!
Hi Orviwan,
I'm in a train, for 2 hours now, and here is the result : I rewrote a few things (well, not so few in fact :) ) because the bitmaps are so small we can keep all of them in memory all the time without any problem. This lightens slightly the code - and the CPU.
I also included the RotBitmapLayers for minute and hour hands, and changed the bitmaps to be an intermediate between the first ones and the ones you've tried yesterday (I chose 15 pixels wide for the hour hand and 11 for the minute hand). I find it's nice like that.
I'm not pushing all of this because I'd like you to look at it before, and I see you are working on it also so I don't want to break something.
I've packed everything in a ZIP archive with the name Aviator_2.0 so you can unzip it without overwriting your files and test it. Here is the download link : http://www.famillemattern.com/jnm/pebble/Aviator_2.0.zip
If this version suits you, just replace the two hands PNG and the Aviator.c file in your original project et voilà !
Cheers !
Jnm.
Thanks Jnm, this is truly awesome!
I made a few small tweaks myself.
Would it be possible to get the hands 1px closer to the edge of the clock?
Yeah, to get the hands closer to the edges, just increase a little bit the 56 and 57 values on lines 386/387 and 392/393 in the update_hands() function.
2014/1/22 orviwan notifications@github.com
Thanks Jnm, this is truly awesome!
I made a few small tweaks myself.
Would it be possible to get the hands 1px closer to the edge of the clock?
— Reply to this email directly or view it on GitHubhttps://github.com/pebble-hacks/aviator/issues/6#issuecomment-33019065 .
Jnm.
Done! Looks perfect
Here is a sample code to demonstrate the use of RotBitmapLayer: https://github.com/Jnmattern/rot_bitmap_test
Please have a look at the code if you will, then run the watchface (get it here: https://github.com/Jnmattern/rot_bitmap_test/blob/master/build/rot_bitmap_test.pbw?raw=true) and tell me if you think it's good looking (I find it's not really nice, but better than the GPaths).
Time is accelerated to be able to see more hand positions: seconds are used as minutes and minutes as hours (modulo 12).
Tell me what you think.