Last updated at 9:06 pm UTC on 2 June 2018
The graphical appearance of a Morph may be any shape e.g. circle, oval, star, scribble, etc. In order to facilitate a morph's 2-d spatial positioning, every morph has, to a first approximation, a rectangular shape and position represented by the value of the instance variable #bounds which encompasses every point that describes the morph's shape. Because a morph may also contain submorphs which have boundaries that lie outside of the morph's bounds, each morph also has an instance variable #fullBounds which is represented by a rectangle which encompasses every point which describes the morph and every submorph chained below it.
Example with this method sent to a RectangleMorph.
The bounds may be changed with
The method #position gives the point at the top-left corner of a morph, and
returns a point encoding the width and height of the morph.
There are also several convenience methods such as
and so on.
Creating a Morph