Skip to content

SketchMorph2 Tools Helpers

Kuganash Ravishanker edited this page Aug 5, 2022 · 4 revisions

M2HandleMorph

This class implements the feature to resize and rotate geometric shapes.

M2PolygonMorph

This class overwrites PolgonMorph in Squeak, so that the shapes have a custom border style.

M2TemporaryGeometricMorph

This class creates a temporary morph which is created by the user when they draw a geometric shape in the canvas. This allows the user to move or rotate the created shapes and then the user can project the shape on the canvas by clicking on the canvas or by selecting another tool.

M2TemporaryTextMorph

This class creates a temporary text morph in which the user can type and on finishing, the user can project it by clicking on the canvas or by selecting another tool. This also allows the user to change the color while typing and also to change the text. The current implementation is so, that the changes occur only on the text that the user is about to type and not to the one the user already typed.