in reply to Re: Tk::LCD Investigations
in thread Tk::LCD Investigations
Ken, thanks for your comments.
I had noticed the offset, but hadn't had a chance to look into it yet. The down-scaling I believe will work as all scaling is calculated from the base rather than from the previous. Errors shouldn't accumulate. The duplicate code in redraw() came from another post and at that moment I was happy to get it working! It had been a lot of trial and error at that point. It won't be necessary when I update the main package. It was an artifact from wanting a way to demo a changing scale without repeatedly editing the source.
I next have to work in move-> to draw multiple colons at different sizes on the same canvas. That's how Tk::LCD draws multiple digits. Move->Polygon, Move->Polygon, etc.
Several years back I ported a wxWidgets clock demo to wxPerl. While more flexible, it was a lot more code.
My learning from this test was using the $_[0] notation for returning data back from a callback.
James
There's never enough time to do it right, but always enough time to do it over...
|
---|