A tutorial for Morphic by Mike Noonan
Mike Noonan discusses his favorite aspect of Squeak, Morphic, specifically regarding his 2-d animation project. Mike analyzes the qualities of SketchMorph, which he used to draw the arms and legs of his actor for the project. However he ran into a problem trying to rotate on an axis that was not based on the center. He solved this problem "by loading an image into the sketchmorph that was transparant on one half of the side." (see figures below)
But Mike also discovered by using TransformMorph in the first place he could've avoided the whole problem entirely. Mike gives an example code of how to use CurveMorph/ PolygonMorph and explains that TextMorph is used for text manipulations. Using the morphs he advises to not forget to intialize the super: super initialize.
Mike then gives examples of basic functions and how to display an image inside SketchMorph. He then adds each portion of the actor to the main Morph. In order to manage all of the submorphs, Mike iterates through the submorphs and when he find a PolygonMorph he makes it invisible.self submorphs do: [:each |
(each isKindOf: (PolygonMorph)) ifTrue: [each visible: false]]
].
Mike's tutorial is fairly detailed and presented with pictures and definately with help on projects using Morph.