[squeak-dev] Squeak clock face

Javier Diaz-Reinoso javier_diaz_r at mac.com
Sat Dec 16 02:43:36 UTC 2017


Well, I think is for eToys Players and in that works well, to test use this in workspace:

attrs := {{100 . Color red . 0.5 at 0.5} . {200 . Color blue . 0.25 at 0.25}}..
hands := attrs collect: [:att| |lm|
	lm := LineMorph from: 150 at 300 to: (Point x: 150+(att at:1) y: 300) color: (att at: 2) width: 2.
	lm rotationCenter: (att at: 3). 
	lm makeForwardArrow].
hands do: [:m | m openInWorld].

and then create 2 (eToy) scripts to rotate, I am enclosing a movie (344kb), I hope is not rejected:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hands.mp4
Type: video/mp4
Size: 342479 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20171215/192fab36/attachment-0001.mp4>
-------------- next part --------------

> On 15 Dec 2017, at 18:09, tim Rowledge <tim at rowledge.org> wrote:
> 
> 
>> On 15-12-2017, at 2:32 PM, Javier Diaz-Reinoso <javier_diaz_r at mac.com> wrote:
>> 
>> Use Morph>>rotationCenter: 
> 
> Unfortunately back in April of this year we pretty much established that the rotationCenter stuff was broken and had been for a looooooooooooooooooooooooong time.
> 
> Look for messages with subject 'MatrixTransformMorph appears to be as broken as a very broken thing'
> 
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- A titanic intellect...  In a world full of icebergs.
> 
> 
> 



More information about the Squeak-dev mailing list