[squeak-dev] Squeak clock face

tim Rowledge tim at rowledge.org
Mon Dec 18 19:14:10 UTC 2017

> On 18-12-2017, at 10:51 AM, Louis LaBrunda <Lou at Keystone-Software.com> wrote:
> Hi Tim,
> Can you please explain what this does:

If I’m remembering properly (never a very good bet)

> 	pointerMorph position: pointerMorph extent * ( -0.5@ -0.65).

moves the pointerMorph so that its origin is moved so that the horizontal center ( 0.5 * width) is at x=0 and the vertical moves ~two thirds of the way up. Then when you add it to the transformationmorph the centers line up where you want it for rotating.

For this to work like that I made the graphic be the needle pointing vertically up. 

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
If it was easy, the hardware people would take care of it.

More information about the Squeak-dev mailing list