[ENH] Squeaky with embedded eyes

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Fri Feb 16 22:17:17 UTC 2001


Here comes Squeaky, the logo mouse with embedded tracking eyes. File in
eyefix-bf.1.cs and then load the attached EyeMouse.morph via the file
list. Now you can rotate and scale the mouse as you like :)

"Change Set:		eyeFix-bf
Date:			16 February 2001
Author:			Bert Freudenberg
Requires:		Squeak3.0gamma3

Makes the MovingEyeMorph behave correctly under MorphicTransforms"!

-- Bert
-------------- next part --------------
'From Squeak3.0 of 4 February 2001 [latest update: #3522] on 16 February 2001 at 11:07:31 pm'!
"Change Set:		eyeFix-bf
Date:			16 February 2001
Author:			Bert Freudenberg

Makes the MovingEyeMorph behave correctly under MorphicTransforms"!


!MovingEyeMorph methodsFor: 'as yet unclassified' stamp: 'bf 2/16/2001 23:04'!
step

	| cp |
	cp _ self globalPointToLocal: World primaryHand position.
	(inner containsPoint: cp) ifTrue: [
		iris position: (cp - (iris extent // 2)).
	] ifFalse: [
	    self irisPos: cp.
	]! !

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EyeMouse.morph
Type: application/octet-stream
Size: 7693 bytes
Desc: 
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010216/f4d47919/EyeMouse.obj


More information about the Squeak-dev mailing list