# Tools

> Learn about Lunacy’s design tools


All of Lunacy’s tools are on the **toolbar** located on the left of the canvas:

<embed type="image/svg+xml" alt="lunacy_toolbar Copy" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/on88vuNDlEGTTKZXKd1qTA.svg" width="844" /> 

Below is a brief description of all available tools, which we will then go over in detail. To speed things up, activate the  tools with the corresponding keyboard shortcuts:

| Tool | Description  | Keyboard shortcut  |
| -------------------------------------------- | ------------------------- | -------------------------- |
|  <embed type="image/svg+xml" alt="select_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/XJmTZpQ6GUKjSTnqKK67BA.svg" width="28" />     | **Select tool.** Use it to select, move, and resize <a href="https://lunacy.docs.icons8.com/raw/layers.md" target="_blank">layers</a> on the canvas. | `V` or press `Esc` when an element or another tool is selected.  |
|    <embed type="image/svg+xml" alt="frame_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/L-UJeydBOkSl1XtJ_06Mfw.svg" width="28" />  | **Frame tool.** Used for creating <a href="https://lunacy.docs.icons8.com/raw/basics.md#frames" target="_blank">frames</a>. 
|   <embed type="image/svg+xml" alt="shape_tools" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/mZX7QztLGUC-R8_CAht2cQ.svg" width="240" />     | **Shape tools.** A set of common shapes you can add to the canvas. Each tool has a shortcut, either a single, double, or repeated press of a button.   | `R` — rectangle<br>`R`, `R` — rounded rectangle<br>`L` — line<br>`L`, `L` — arrow<br>`O` — oval<br>`O`, `O` — triangle <br>`O`, `O`, `O` — polygon<br>`O`, `O`, `O`, `O` — star |
|   <embed type="image/svg+xml" alt="text_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/P69ZzGxWo0upt-S25nVP5g.svg" width="28" />     | **Text tool.** Add text layers to the document. Comes with an on-canvas <a href="https://lunacy.docs.icons8.com/raw/text.md#text-generation-and-text-snippets" target="_blank">text generation</a> option.| `T`    |
|     <embed type="image/svg+xml" alt="pen_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/ox33KNr9I0Sby8cSNl1BIg.svg" width="28" />    | **Pen tool.** Used for creating custom vectors or shapes.| `P`    |
|   <embed type="image/svg+xml" alt="img_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/Ow3QgJBiy0KHVu-4_JiYXQ.svg" width="28" />   | **Image tool.** Use it for importing images.      | `M`    |
|   <embed type="image/svg+xml" alt="gui_tools" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/jVG8u-6oukqQkwog6PvoVg.svg" width="240" />      | **GUI tool.** A set of basic interface element components from <a href="https://lunacy.docs.icons8.com/raw/libraries.md#ui-kits" target="_blank">UI kits</a> (buttons, checkboxes, radio buttons, and so on) that you can quickly add to your designs.      | `B` — button<br>`D` — text input field<br>`F` — checkbox<br>`Y` — radio button<br>`J` — toggle<br>`W` — dropdown  |
| <embed type="image/svg+xml" alt="icon_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/B0LK2cd1-USlSrOotEB22Q.svg" width="28" />     |  **Icon tool.** Keeps recently used icons at hand.  | `X`    |
|  <embed type="image/svg+xml" alt="comment_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/P4EDGuPTdkSRCxwgY5ydxw.svg" width="28" />   | **Comment tool.** Activate it to leave <a href="https://lunacy.docs.icons8.com/raw/comments.md" target="_blank">comments</a> anywhere on the canvas (only available in <a href="https://lunacy.docs.icons8.com/raw/clouddocs.md" target="_blank">cloud documents</a>).| `C`    |
|   <embed type="image/svg+xml" alt="scale_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/scm-lgqtykigv546NkSUrQ.svg" width="28" /> | **Scale tool.** Proportionally change the size of the elements on the canvas. | `K`    |
| <embed type="image/svg+xml" alt="eyedropper_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/j1f4Pah3E0-4RKYAG490bw.svg" width="28" /> | **Eyedropper tool.** Use it to sample colors.| `I`    |
|   <embed type="image/svg+xml" alt="hand_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/aeKlQKB3oUKrkJnxg0MmSg.svg" width="28" />     | **Hand tool.** Used for easily navigating the canvas.   | Hold down `Space` or the **middle mouse button**    |
| <embed type="image/svg+xml" alt="hotspot_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/lW_uQvz74UigFsTCevtrUw.svg" width="28" />    | **Hotspot tool.** Add <a href="https://lunacy.docs.icons8.com/raw/prototyping.md#hotspots" target="_blank">hotspots</a> (interactive zones) to your designs when working with prototypes.    | `H`    |
|   <embed type="image/svg+xml" alt="slice_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/V28c8SJgbUCAuVoMTZDcPA.svg" width="28" />    | **Slice tool.** Specify a region, or <a href="https://lunacy.docs.icons8.com/raw/export.md#using-slices-for-export" target="_blank">slice</a>, of the canvas and <a href="https://lunacy.docs.icons8.com/raw/export.md" target="_blank">export</a> it. The slice can include parts of frames, several parts of different frames, and so on.  | `E`    |
|  <embed type="image/svg+xml" alt="pencil_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/FahQcMve1EOAIZSZ_ayN_w.svg" width="28" />    | **Pencil tool.** Used for drawing freehand shapes.      | `P`, `P`       |
|  <embed type="image/svg+xml" alt="avatar_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/rUxSy1TC9EWHGcnfCjjHdQ.svg" width="28" />    | **Avatar tool.** Add randomly generated avatars to your designs.     | `Q`    |
| <embed type="image/svg+xml" alt="component_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/02TX6jrbmUemFRYnGU5Ubg.svg" width="28" />   | **Component tool.** Useful when you’re creating interface mockups: add placeholder components and then replace them with UI elements later.  | `S`    |
| <embed type="image/svg+xml" alt="Copy Rotation" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/vYhxX1OdAUq6KS_Qf0etlQ.svg" width="28" />  | **Rotate copies tool.** Creates multiple rotated copies of any shape around a central point. Perfect for designing patterns, circular layouts, and symmetrical artwork.  | `Ctrl/⌘ + Shift + B`    |


Lunacy also has the **Zoom tool**, though it doesn’t appear on the toolbar. To activate it, hold down `Z` and zoom in and out of a specific area on the canvas. 

**See also:**
<br> 
<a href="https://lunacy.docs.icons8.com/raw/basics.md#zooming-options" target="_blank">Zooming options</a>

<div class="callout callout--info">
    <p><strong>Note:</strong> If you need more space or prefer working with keyboard shortcuts, toggle off the display of the toolbar by selecting <b>View → Toolbar</b> in the menu bar.</p>
</div>

## Select tool

The **Select tool** is active by default when no other tool is in use. 

With it, you can select any layer on the canvas (provided it’s not locked), then move and modify the element as you wish:

- **Select** a layer by clicking it. A selection frame with handles will enclose the element and its name will be highlighted in the <a href="https://lunacy.docs.icons8.com/raw/interface.md#layer-list" target="_blank">Layer list</a>. Hold down `Shift` and click multiple elements to select all of them. If you need to select every element on the page, press `Shift + A`.
- **Move** layers by dragging them on the canvas.
- **Resize** and **rotate** layers using the handles at the coners of the selection frame. 

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_select_tool_basics.png" height="auto"><source src="/public/tools_select_tool_basics.mp4" type="video/mp4"></video>

You can also select layers through the **Layer List**. It may be more convenient in some cases, like when you’re dealing with fully overlapping or locked layers. 

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_select_in_layer_list.png" height="auto"><source src="/public/tools_select_in_layer_list.mp4" type="video/mp4"></video>

#### Using the Select tool with grouped layers

When you click over a group, you select the entire group.

To **select a specific layer inside a group**:

- Click the layer while holding down `Ctrl` / `⌘`.
- Click to select the group, then double-click to select the required layer.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_select_elements_inside_group.png" height="auto"><source src="/public/tools_select_elements_inside_group.mp4" type="video/mp4"></video>

Then, switch the selection to the other layers in the group by clicking them.

## Frame tool

**Frames** work like containers for your layers. They’re more flexible than layers in a lot of ways and are especially convenient when you’re designing for a specific device or screen size. 

Press `A` to activate the **Frame tool** and drag over the canvas to create a frame:

<embed type="image/svg+xml" alt="frame_tool_create" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/EDEaTb4JWUye0bosk0GAJg.svg" width="844" /> 

Instead of dragging, you can set the frame size using the **preset list** that appears in the **right panel** or **snap the frame to a preset** by dragging its corner to one of the blue `+` icons that appear when you’re adding a frame:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_snap_to_preset.png" height="auto"><source src="/public/tools_snap_to_preset.mp4" type="video/mp4"></video>

<div class="callout callout--info">
    <p><strong>Tip:</strong> You can drag layers into existing frames or draw a frame over several layers to frame them. </p>
</div>
 

**See also:**
<br> 
<a href="https://lunacy.docs.icons8.com/raw/basics.md#frames" target="_blank">Frames</a>

## Shape tools

Use these tools to **add standard shapes** onto the canvas:

- Rectangle (`R`)
- Rounded rectangle (`R`, `R`)
- Line (`L`)
- Arrow (`L`, `L`)
- Oval (`O`)
- Triangle (`O`, `O`)
- Polygon (`O`, `O`, `O`)
- Star (`O`, `O`, `O`, `O`)

Select the required shape on the toolbar or use the corresponding keyboard shortcut, then:

- Click on the canvas to **place it as a 100 x 100 shape** (works for all shapes except for lines and arrows).
- Click and drag to **adjust the shape’s size**.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_the_shape_tool.png" height="auto"><source src="/public/tools_the_shape_tool.mp4" type="video/mp4"></video>

Some more shape tips:
- To **draw or resize a shape from the center**, hold down `Alt` / `⌥`.
- To **draw symmetrical shapes**, hold down `Shift` / `Shift`.
- Hold down both shortcuts to **draw symmetrical shapes from the center**.
- To **draw a horizontal, vertical, or 45-degree diagonal** line, arrow, or path, hold down `Shift`.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_draw_resize_from_center.png" height="auto"><source src="/public/tools_draw_resize_from_center.mp4" type="video/mp4"></video>

**See also:**
<br> 
<a href="https://lunacy.docs.icons8.com/raw/editing.md" target="_blank">Editing shapes</a>

## Text tool

To **add a text layer**, press `T` and click over the area of the canvas where you want to place it. Type your text or use the handy **text generation** options that automatically appear when you create a new text layer:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_text_type_and_generate.png" height="auto"><source src="/public/tools_text_type_and_generate.mp4" type="video/mp4"></video>

**See also:**
<br><a href="https://lunacy.docs.icons8.com/raw/text.md" target="_blank">Text</a><br><a href="https://lunacy.docs.icons8.com/raw/text.md#text-generation-and-text-snippets" target="_blank">Text generation</a>

## Pen tool

The **pen** is a tool for creating vector paths and shapes. Activate it by pressing the **Pen tool** on the toolbar or press `P`.

If you’ve worked in other graphic editors before, use it like the Pen tool in those apps. If you’re new to design, it might take you some time and practice to master it. In this section, we’ll go over the main capabilities of the tool.

The pen builds shapes by drawing segments between the points, or **vertices**, that you add onto the canvas. The segments between interconnected vertices are called **paths**. 

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_creating_vertice_and_path.png" height="auto"><source src="/public/tools_creating_vertice_and_path.mp4" type="video/mp4"></video>

#### Types of paths

Paths can be **open** or **closed**:

- An **open path** has a start point and an end point that are not connected. 
- When the start and end point of a path are connected, i.e. the path starts and ends on the same vertex, it’s called a **closed path**, or a **shape**.


<embed type="image/svg+xml" alt="open_closed_paths" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/EwUuc_GDdE27etLumx_9Tg.svg" width="844" /> 


Path segments can be either **straight** or **curved**.

To **build a shape out of straight lines** (e.g. a triangle):

1. Press `P` to activate the pen. This activates **Edit mode**, and the **Edit shape** section will appear in the **right panel**.
2. Click over the canvas to place the first point.
3. Keep clicking to outline the shape that you want. To **delete a point**, hold down `Alt` / `⌥` and click it.
4. Close the path by clicking over the starting point or click the **Close path** in the right panel.
5. Press `Esc` to exit **Edit mode**.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_creating_triangle.png" height="auto"><source src="/public/tools_creating_triangle.mp4" type="video/mp4"></video>

To **curve a path**, you’ll need to be in **Edit mode** (or don’t exit it while drawing with the Pen tool). 

To **enable Edit mode**, select a vector shape, then:

- Double-click it
- Press `Enter` 
- Click the Edit layer icon (<embed type="image/svg+xml" alt="pencil_tool" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/FahQcMve1EOAIZSZ_ayN_w.svg" width="28" >) on the **context toolbar**

To **add a curve**:

- Double click on a point
- Click and drag anywhere on a path

Two adjacent handles will appear around the point. Drag these handles and change their length to adjust the shape of the curve. You can also move the point around, if necessary:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_pen_create_shape_with_curves.png" height="auto"><source src="/public/tools_pen_create_shape_with_curves.mp4" type="video/mp4"></video>
 
Don’t worry if the resulting shape isn’t exactly what you wanted. Refine it by modifying curves and straight paths, as well as moving, adding, or deleting points.

To **adjust a shape**:

1. Select it.
2. Enable **Edit mode**.
3. Make the required changes.
4. Press `Esc` or click anywhere on the canvas outside the shape to exit **Edit mode**.

You can also change the **stroke** of the shape, add **fills** (to closed shapes) and **effects** in the **right panel**.

In the demo below, we added some curves to a heart-shaped layer built with straight lines. Note how a double-click turns a straight point into a curved point that is also mirrored (find out about [different types of points](#types-of-points)).

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_adjusting_shape_with_pen.png" height="auto"><source src="/public/tools_adjusting_shape_with_pen.mp4" type="video/mp4"></video>

<div class="callout callout--info">
    <p><strong>Tip:</strong> To draw a horizontal, vertical, or 45-degree diagonal path, hold down <code>Shift</code> when placing the second point of a segment. </p>
</div>


#### [Types of points](#types-of-points)

Points can be either **straight** or **curved**. 

**Curved points** appear with handles when you build <a href="https://en.wikipedia.org/wiki/B%C3%A9zier_curve" target="_blank">Bézier curves</a>, and have three subtypes:

- **Mirrored** points come with identical handles that mirror each other as you drag one of the handles.
- **Disconnected** points have totally independent handles.
- **Asymmetric** points come with handles that share the same angle but can have different lengths.

<embed type="image/svg+xml" alt="types_of_points" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/N2EKqIYHl0Sv6lODiM61Yg.svg" width="844" /> 

You can `double-click` to **switch between straight and mirrored** points. To **switch to disconnected or asymmetric** points, use the controls that appear at the top of the right panel when you’re using the pen or have **Edit mode** enabled:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_changing_point_types.png" height="auto"><source src="/public/tools_changing_point_types.mp4" type="video/mp4"></video>

You can also **hide one of the handles of a disconnected point** by dragging the tip of the handle towards the point:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_hiding_handle.png" height="auto"><source src="/public/tools_hiding_handle.mp4" type="video/mp4"></video>

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/editing.md#vector-editing" target="_blank">Vector editing</a>

## Pencil tool

The **pencil** is a tool for drawing freehand paths. It’s great when you need to quickly sketch something and don't need perfectly refined shapes. That said, using a stylus with a graphic tablet will give you more precision.

The pencil stroke is black and 1px wide by default. You can adjust these properties for pencil-drawn layers in the **right panel**.

To draw with the **Pencil tool**:

1. Press `P` twice or select it on the toolbar.
2. Hold down the **left mouse button** and draw the required path. 
3. Release the button when you are done.

Unlike the other tools, the **Pencil tool** doesn't revert back to the **Select tool**. It remains active, so you can create as many layers as you want, with each pencil stroke adding a new layer to the **Layer list**. You can always group them later.

Once you’re done working with the pencil, press `Esc` or switch to another tool.

Here are two examples of a word written in one stroke and letter-by-letter (then grouped for convenience) using the pencil. Notice how they appear in the **Layer list**:

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_pencil_single_multiple.png" height="auto"><source src="/public/tools_pencil_single_multiple.mp4" type="video/mp4"></video>

#### Editing paths drawn with the Pencil tool

Lunacy automatically smooths the paths that you create. You can also **edit pencil-drawn paths** like any other vector path:

1. Enable **Edit mode**.
2. Adjust the paths.
3. Press `Esc` or click anywhere on the canvas outside the shape once you’re done.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_editing_pencil_paths.png" height="auto"><source src="/public/tools_editing_pencil_paths.mp4" type="video/mp4"></video>

You can also add **borders**, **shadows**, and **blurs** to paths drawn with the pencil. 

As for **fills**, keep in mind that the pencil always draws open paths, even if they appear closed. You can try to apply fills, but in many cases the result is going to look a little weird. If you need to close a path, enable the layer **Edit mode** and click the **Close path** button in the right panel.

## Image tool

Use the **Image tool** to quickly add images from your computer onto the canvas. 

Lunacy supports all popular image formats: `PNG`, `JPG`, `JPEG`, `WEBP`, `BMP`, `ICO`, `GIF`, `SVG`. The `TIFF` format is not supported.

To **add an image** to your design:

1. Press `M` or select the **Image tool** on the toolbar.
2. In the **Open** dialog box, choose one or multiple image files.
3. Click over the area where you want to place the image to add the image in its original size. You can also click and drag to set the required image size.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_image_tool_add.png" height="auto"><source src="/public/tools_image_tool_add.mp4" type="video/mp4"></video>

Of course, you can always **drag and drop images** from your files into Lunacy as well. 

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/images.md" target="_blank">Images</a>

## GUI tool

The **GUI tool** features a set of basic UI elements that you can add to your designs as components:

- Button (`B`)
- Text input field (`D`)
- Checkbox (`F`)
- Radio button (`Y`)
- Toggle (`J`)
- Dropdown menu (`W`)

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_gui_tool.png" height="auto"><source src="/public/tools_gui_tool.mp4" type="video/mp4"></video>

You can <a href="https://lunacy.docs.icons8.com/raw/components.md#editing-components" target="_blank">edit the appearance</a> of these components or <a href="https://lunacy.docs.icons8.com/raw/components.md" target="_blank">swap them out</a> entirely.

To <a href="https://lunacy.docs.icons8.com/raw/components.md#creating-components" target="_blank">create components</a> of your own, use the **Component tool** or turn layers into components via `Ctrl + Alt + K` / `⌘ + ⌥ + K`.

## Component tool

Use the **Component tool** to quickly create draft interface mockups. With it, you can add placeholder components and later replace them with elements from the **GUI tool** or your own components.

To **draw a placeholder component**:

1. Press `S` or select the **Component tool** on the toolbar.
2. Drag over the area where you want the placeholder component to be.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_component_placeholders.png" height="auto"><source src="/public/tools_component_placeholders.mp4" type="video/mp4"></video>

Placeholder components appear as pink rectangles with a question mark. To place components into these placeholders, select them and <a href="https://lunacy.docs.icons8.com/raw/components.md" target="_blank">swap them</a> with components from the **Components tab** in the left panel or the **Component section** in the right panel.

With the **Component tool** enabled, press `S` and `Shift + S` to switch back-and-forth between recently used components and quickly add them to the canvas.

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/components.md" target="_blank">Components</a>


## Icon tool

The **Icon tool** simplifies your workflow by keeping recently used icons at hand. To activate it, press `X` or select it on the toolbar. The **Icons** content tab will open up on the left, displaying a variety of icons of different themes and styles:

<embed type="image/svg+xml" alt="icons_library" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/m6GPDhlcsEabGp_o39HUNQ.svg" width="844" /> 

Also, if you’ve already added icons to the document, the latest used one will be hovering near the cursor. 

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_icon_tool.png" height="auto"><source src="/public/tools_icon_tool.mp4" type="video/mp4"></video>

Like with the **Component tool**, when the **Icon tool** is active, use `X` and `Shift + X` to switch through recently used icons.

## Comment tool

Use the **Comment tool** to leave comments and notes for yourself to view later or to comment on other people’s documents and collect feedback. Commenting is only available in <a href="https://lunacy.docs.icons8.com/raw/clouddocs.md" target="_blank">cloud documents</a>. Apart from text, you can also **comment with stickers or voice recordings**.

To **add a comment** to a document:

1. Press `C` or select the **Comment tool**.
2. Click over the place on the canvas you want to comment.
3. Type something in the input field.
4. Click <embed type="image/svg+xml" alt="Sent" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/n8l4ALF8uEizCWAyrGB8oQ.svg" width="20" /> or press `Enter`.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_comment_tool.png" height="auto"><source src="/public/tools_comment_tool.mp4" type="video/mp4"></video>

<div class="callout callout--info">
    <p><strong>Tip:</strong> To write multiline comments, use <code>Shift + Enter</code>.</p>
</div>

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/comments.md" target="_blank">Comments</a>

## Avatar tool

Use the **Avatar tool** to generate user avatars, so you don’t have to look for stock photos online. Choose from **real-life models** or **AI-generated people**. Combine it with Lunacy’s <a href="https://lunacy.docs.icons8.com/raw/text.md#text-generation-and-text-snippets" target="_blank">text generation</a> feature, and you’ll save a massive amount of time.

To **add an avatar** to the canvas:

1. Activate the **Avatar tool** by pressing `Q` or selecting it on the toolbar.
2. **Click** or **click and drag** on the canvas to place the avatar.
3. Copy the avatars as many times as you need to get new photos. To change existing avatars:
    - With a single avatar selected, click the refresh button (<embed type="image/svg+xml" alt="Refresh/Normal" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/Wrpud5KNLUe9hzSDiwGnew.svg" width="24" />) at the top-left corner of a selected avatar.
    - With several avatars selected, press `Shift + R` or **Generate avatar** in the **right panel**.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_add_avatars.png" height="auto"><source src="/public/tools_add_avatars.mp4" type="video/mp4"></video>

<div class="callout callout--info">
    <p><strong>Tips:</strong> The default collection of avatars built into Lunacy includes five images, which you can use <bold>even if you’re offline</bold>. When you’re online, you have access to the full collection of avatars featuring photos of real-life models. </p>
</div>

Thanks to integration with the <a href="https://generated.photos/" target="_blank">generated.photos</a> project, you can also **create and customize avatars**:

1. With an avatar selected, switch the **Real-life photo** menu to **Generated photo** in the **right panel**. 
2. Change the model’s gender, ethnicity, facial expression, age, and hair color appear in the corresponding input fields.
3. When you’re done, click **Generate avatar** and enjoy the magic!

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_generated_avatar_creation.png" height="auto"><source src="/public/tools_generated_avatar_creation.mp4" type="video/mp4"></video>

You can also **change the background in AI-generated avatars**:

1. Select an avatar.
2. In the **Generated photos** section of the **right panel**, enable the **Transparent** toggle.
3. Click **Generate avatar**. A new avatar with a transparent background will appear on the canvas.
4. In the **Fill** section of the **right panel**, click `+`. This will add a new fill layer above the image.
5. Move the fill below the image layer.
6. Modify the fill.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_generated_avatar_background.png" height="auto"><source src="/public/tools_generated_avatar_background.mp4" type="video/mp4"></video>

Although avatars appear as circles when you add them to the canvas, they’re actually rounded rectangles, so you can <a href="https://lunacy.docs.icons8.com/raw/tips.md#adjusting-the-corner-radius-setting-for-rectangles" target="_blank">modify their corner radius</a> if you need.

Moreover, you can **create avatars from any shape**. To do this, select a shape, then enable the **Avatar tool** and click **Generate avatar** in the **right panel**. This also works with generated photos.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_avatar_from_shapes.png" height="auto"><source src="/public/tools_avatar_from_shapes.mp4" type="video/mp4"></video>

## Scale tool

Using the **Scale tool**, you can proportionally resize any of your layers, **except for**:
- Locked layers 
- Layers nested in component instances

To activate the **Scale tool**, press `K` or select it on the toolbar. Then, select the element you want to resize and use the bounding box handles to resize it.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_scaling_on_canvas.png" height="auto"><source src="/public/tools_scaling_on_canvas.mp4" type="video/mp4"></video>

The **Scale tool** preserves the aspect ratio and also scales any borders and/or effects applied to the layer. 

With the **Scale tool** enabled, you can set precise values to change the layer size in the right panel, and the tool will scale the layer and its properties accordingly.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_scaling_right_panel.png" height="auto"><source src="/public/tools_scaling_right_panel.mp4" type="video/mp4"></video>

## Slice tool

With the **Slice tool**, you can select a specific area on your design and export it.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_exporting_a_slice.png" height="auto"><source src="/public/tools_exporting_a_slice.mp4" type="video/mp4"></video>

To **export a slice**:

1. Enable the **Slice tool** by pressing `E` or selecting it on the toolbar.
2. Click and drag over the area you want to export. 
3. Open the **Export tab** in the **right panel**.
4. Define the export settings.
5. Click **Export selected**.

To **hide/show slices** on the canvas, enable/disable the **Slices** option in the **Additional options** menu on the top bar:

<embed type="image/svg+xml" alt="slices_show_hide Copy" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/jILdw9U_EEOyBH6TJL0Vgg.svg" width="844" /> 


To **remove a slice** from the canvas, select it and press `Del`.

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/export.md" target="_blank">Export</a>

## Hotspot tool

Use the **Hotspot tool** to create hotspot zones when designing prototypes. With hotspots, you can make any part of your design interactive, as well as expand the interactive area for small elements, making them easier to press.

To **add a hotspot**:

1. Press `H` or select the **Hotspot tool** on the toolbar.
2. Click and drag over the area where you want to place a hotspot.
3. Link it to a frame to set up an interactive prototype.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_hotspot_tool.png" height="auto"><source src="/public/tools_hotspot_tool.mp4" type="video/mp4"></video>

To **hide/show hotspots and prototyping links** on the canvas, enable/disable the **Show prototyping** option in the **Additional options** menu on the top bar:

<embed type="image/svg+xml" alt="prototyping_show_hide" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/kjIhPF4fKkOEfpSpQkaHBg.svg" width="844" /> 

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/prototyping.md" target="_blank">Prototyping</a>  

## Eyedropper tool

The **Eyedropper tool** samples the colors of the elements in your document.

To **use the eyedropper tool**:

1. Select a layer you want to recolor. If you don’t select any layer, the eyedropper will apply the new color to the workspace.
2. Select the **Eyedropper tool** on the toolbar or on the color picker panel, or press `I`. The cursor will turn into the eyedropper, and the **Colors** panel will appear on the left, featuring four pallets:
    - **Recent colors**
    - **Material colors**
    - **Document colors**
    - **Flat colors**
3. Hover the eyedropper over the color that you want to sample, either on the canvas or Lunacy’s interface, and click to apply it.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_using_the_eyedropper.png" height="auto"><source src="/public/tools_using_the_eyedropper.mp4" type="video/mp4"></video>

That is typically how all eyedroppers work in similar apps. Lunacy’s eyedropper also features a **zoom option** that comes in handy when you need pixel precision for small target areas. 

To enable it, hover the eyedropper over the target and hold down the left mouse button. Then point the eyedropper to the required pixel and release the mouse button. To exit the zoom mode, press `Esc` or quickly swipe the cursor anywhere away from the current area.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/tools_eyedropper_zoom.png" height="auto"><source src="/public/tools_eyedropper_zoom.mp4" type="video/mp4"></video>


#### How the eyedropper applies colors to layers

Depending on the styling properties of a layer, the eyedropper applies colors in the following order:

1. Fill
2. Border
3. Shadow
4. Inner shadow

So, if a layer has a **fill** and a **border**, the eyedropper will update the **fill**. 

If a layer has no fill, but has a **border** and a **shadow**, the eyedropper changes the **border** color, and so on. 

If a layer has **several fills** (or borders/shadows/inner shadows), the eyedropper applies the color the **property at the top of the list** in the right panel. 

Similar rules apply to text layers, where **text color** has top priority.

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/styling" target="_blank">Styling<.mda>

## Hand tool

The **Hand tool** is useful for navigating the canvas. To activate it, hold down `Space` or the **middle mouse button** and drag. 

**See also:**
<br>
<a href="https://lunacy.docs.icons8.com/raw/basics.md#working-with-the-canvas" target="_blank">Working with the canvas</a>

## Rotate copies tool

This tool enables you to create multiple rotated copies of any shape around a central point in no time. The tool is great for designing patterns, circular layouts, and symmetrical artwork. 

To enable the tool, select a layer and click <embed type="image/svg+xml" alt="Copy Rotation" src="https://cdn-eu.icons8.com/docs/Dko8QE6mZ06fz2gAGGUBbA/vYhxX1OdAUq6KS_Qf0etlQ.svg" /> on the context toolbar. Or use the `Ctrl/⌘ + Shift + B` shortcut.

Use `+` and `-` to control the number of copies.

When done, click **Apply editing** in the right panel or click anywhere beyond the shape.

<video autoplay="" muted="" loop="" playsinline="" width="100%" poster="/public/rotatecopy.png" height="auto"><source src="/public/rotatecopy.mp4" type="video/mp4"></video>