Skip to content

SketchMorph2 Tools

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

This category contains all the shapes that can be used in a tool and all the tools.

Shapes

Lasso

This is an free form shape which is currently used to implement the lasso selection tool

Geometric shapes

Currently there are 3 geometric shapes, triangle, ellipse and rectangle. These shapes are used to create the geometric tools and also the brushes with different nibs.

Tools

Brushes

Examples: pencil, circle brush
They modify the pen directly, giving it a different source form that is then drawn onto the form using a combination rule.

Geometric Tools

Examples: triangle, ellipse and rectangle
These use a temporary form that gets drawn onto using parametrized descriptions of geometric shapes. After the temporary form is completed, the form can be resized or rotated with handles, which can be later projected onto the the canvas with the another click on the canvas.

Text

This uses a temporary text morph that gets written into, which is then projected onto the main form. You can also with the help of the text font, change the font style.

Action Tools

Examples: clear canvas, undo, export as PNG etc.
These are tools that are only a one-time action or a single click

Clone this wiki locally