How to make ananalog clock in the skin
Re: How to make ananalog clock in the skin #41
Re: How to make ananalog clock in the skin #42
Re: How to make ananalog clock in the skin #43
Re: How to make ananalog clock in the skin #44
Posted 18 December 2012 - 09:56
shouldn't speak for @Loui, but I suppose that still uses original Watches.py (so embedded drawLine function is not used for drawing)Is that clock being rendered with the new lineDraw? Or does that still only draw black lines?
//my (strong ) suspicion is based on the simple fact that for me, clock hands are still black (which should not be much surprising since there were no changes in this regard since introducing this function/?/)
not sure about adding analog clock to the default skin (maybe better to add an alternate version?),When I find a good location for it.... For now I think the analogue clock is a nice gatget but the look is a bit more chaotic then a digital clock....
but, adding tools for analog clock might be useful (of course when they'll be OpenPLi-ready)...
- Watches.py - seems that there is some work in progress to improve it...
- ExtraNumText converter - actually all jobs of it are done in OpenPLI by other converters, so maybe these secHand minHand hourHand could be added to some existing converter (ClockToText?)?
thoughts?
Re: How to make ananalog clock in the skin #45
Re: How to make ananalog clock in the skin #46
Posted 18 December 2012 - 11:05
Watches_Extranumtext.rar 3.16KB 18 downloads usr.rar 2.92KB 14 downloads A.u.b.Can you post your Watches.py that you are using now here?
Edited by Loui (PD1LOI), 18 December 2012 - 11:09.
Re: How to make ananalog clock in the skin #47
Posted 18 December 2012 - 23:18
little overstatement (to say the least... )blzr
...you understand how it works....
ok, FWIW, you got two (pieces of a copy/paste coding ), to choose from:probably you can give us at least a patch to make ExtraNumText obsolete...
1. analog clock convert types added to ClockToText converter (but am not quite sure, if it's the right place for it...)
or
2. new small and neat ClockToHand converter
converters and patches (just in case) attached...
//and please, don't be too harsh, remember "NOBODY expects the Spanish Inquisition!"
Attached Files
Re: How to make ananalog clock in the skin #48
Posted 26 December 2012 - 20:26
FWIWbut after applying this change, clock hands are drawed, but they're all black (hence barely visible unless you have white clock-face
Hmm, maybe still something missing in the line draw code then. Probably this is the first time it was ever used...
in gpixmap.cpp there's quite a difference regarding (rgb)colors in fill and line functions
void gPixmap::fill(const gRegion ®ion, const gRGB &color)
void gPixmap::line(const gRegion &clip, ePoint start, ePoint dst, gColor color) ...
maybe this could be some clue?
//and please note, my c++ skills are on par with Python ones (ie pretty absent)
Re: How to make ananalog clock in the skin #49
6 user(s) are reading this topic
0 members, 6 guests, 0 anonymous users