Rotating widgets

Mark Wieder ahsoftware at sonic.net
Sat Oct 14 20:44:01 CEST 2017


On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote:
> You would probably be better off using a transparent png-image that is square for the clock hand, and where the rotation point of the clock hand was at the center of the square. You could then put the clock hand on top of the clock face and rotate the hand at will. My students hand the same kind of problem as part of their national exam this spring. You could also do some vector calculations to find the new center for your widget, but I must admit that I am not all that certain how you would go about it then. Mathematics is not my strongest subject, and I must admit that at 56 I have forgotten most of the maths I learnt in my upper secondary years.

This is where I miss having Scott Rossi around.
My simplistic take on this would be similar:
Make your clock hand twice as long, with half of it transparent.

-- 
  Mark Wieder
  ahsoftware at gmail.com



More information about the use-livecode mailing list