selfStudy - Create a Rectangle object in Morphic
Last updated at 4:16 am UTC on 2 January 2005
prior selfStudy next
What we want to do: We create a rectangle morph using both graphical and text based processes. We want to experiment with two simple properties of a morph: its layout policy, its step rate and its model. There's a lot more to learn and there are a lot of cool things to look at but we just want to get started.
What you should know before doing this exercise
What is Morphic? What are the elements of Morphic architecture? Especially, What are Morphs? Spefically, what is a RectangleMorph?What is a mophic halo, a layout policy,a Morph's model and a morphic step? See Maloneys' Tutorial:Fun with Morphic Graphic System
And, just to be sure you got it all, read: Why Morphic is Way Cool
The exercise
- Start Squeak using the self-study.image.
- Open the Supplies Flap
- Drag out a Rectangle and bring up the halo. (Hint: Halo)
- Click on each halo icon and see what it does. (One will destroy the morph, so just recreate it.)
- Which two halo icons allow you to move the morph? What's the difference between the two?
- Which two halo icons allow you to open a menu? What funtions are common to both menus?
- What two halo icons allow you to look at or change the parts of th e halo? Which do you like better?
- In the Workspace, create a green rectangle morph in the center of the page.
- Inspect the morph and find out what its layout policy is, what its model is and what steping policy it has.
- Use the red menu to change its layout policy to proprotional, its model to xxx and its step policy to xxx.
- Quit Squeak (without saving).
Verify you got it
Feedback - Please update this page with corrections and comments. This is a Wiki, so feel free to make corrections/ extensions to the instructions above. Also feel make suggestions comments below. The more specific your comments the better.