This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6583 - Hour Hand in Full Screen Clock
Attached to Project:
Rockbox
Opened by rbx-Multiplex (rbx-multiplex) - Sunday, 28 January 2007, 15:57 GMT+2
Last edited by Tom Ross (midgey34) - Saturday, 04 August 2007, 05:20 GMT+2
Opened by rbx-Multiplex (rbx-multiplex) - Sunday, 28 January 2007, 15:57 GMT+2
Last edited by Tom Ross (midgey34) - Saturday, 04 August 2007, 05:20 GMT+2
|
DetailsThe new(ish) clock that auto scales to all target sizes was using the old fixed array for the hour hand in full screen mode so it wasn't correct
I have fixed that and while I was there I also tidied up the trigonometry and made the hands more solid and tweaked the lengths. Patch is my 'fixes' |
This task depends upon
Closed by Tom Ross (midgey34)
Saturday, 04 August 2007, 05:20 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Recent changes to the clock plugin make this patch obsolete.
Saturday, 04 August 2007, 05:20 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Recent changes to the clock plugin make this patch obsolete.
Nice timing with this, as I recently (about a week ago) began working on a much better-scaling, better-looking clock update (hint: stupid "8 surrounding pixels" hour/minute hands are looking a lot lot better). I'm nearly completely done with it now, you should see it in SVN this weekend most likely, and much of this code is now unnecessary. However, I do like the changes pertaining to directly using "second" and "minute" instead of a confusing "pos" and the hour = 2/3 minute seems like a great length to me.
Therefore I'd like to take a few of these changes and implement them at some point. However, for this, I need your full name to give you credit... :)
Thanks for your work.
use anything you find useful, discard the rest, I was thinking about trying for triangular hands with coulour (and ORing them) like the XClock
THe drawing from all the 8 pixels around the centre for the hands is a clodge, it would be quite easy to add a bunch of if statements to only draw the needed lines - not sure what you mena by the "stupid" 8 surrounding pixels comment though - I was toying with tracking down an efficient routine for drawing triangles but to be honest I have an H300 so can only see the display when the battery draining back light is on so am not a big user of the clock - it's nice though.
My real name is already in the credits list - Ian Webber, I played arround with the Replay Gain tag
Sorry Mike, I don't understand your comment
If you wanted something to do, I/we/Rockbox plugins could really use an antialiased line implementation in the plugin library or so. I'm currently drawing a slightly bigger, but lighter, triangle underneath the clock hands in order to sorta fake antialiasing.. it doesn't look too bad, but I think it could look way better. Antialiased lines would definitely look nice if you had any ideas for that.
Thanks again for your work, I'll continue on the clock tonight and maybe I can have it ready for SVN on sunday.
Talking of anti-aliasing, what might be possible is to give the hands a 3D feel by drawing each hand from 3 triangles each a slightly differnt brightness ...
I did a search for likely strings for triangles but didn't find any, must go look at xlcd - will it be in the source download?
(I haven't sorted out SVN access)
I'll have a look for anti aliasing but don't hold your breath !
I'll continue screwing with it, and hopefully I'll get something that looks decent. [fantasy: what we could really use is some sort of bitmap rotating feature.. I'd love to create a minute hand in Photoshop and just have it rotate. That's too much to ask, though :)]
It needs some more work and cleanup, but when it's finished, I'll commit a patch.