#

## paint

Paint mask information into the current edit cell

### Shortcuts:

> Key interactive macro p implements the command paint and waits for input of the layer type.
> Mouse button 2 implements the command paint cursor when using the "box tool" in a layout window.

### Usage:

> paint layers|cursor|pick x y

> > where layers is a comma-separated list of types to paint, and x y are coordinates in the layout coordinate system.

### Summary:

> The paint command paints layer types in the current edit cell inside the area of the cursor box.

> Note that some layers, such as DRC layers, cannot be painted. Elements are painted with the element command and feedback areas are painted using the feedback command.

> The "paint cursor" option picks the layers underneath the position of the (X11) cursor and fills the cursor box with these types. However, when no material (e.g., "space") is present under the cursor, then all material and labels are erased from the area of the cursor box.

> The "paint pick x y" option works like "paint cursor", but the type of paint is selected from the given position in layout coordinates instead of a pointer position.

### Implementation Notes:

> paint is implemented as a built-in command in magic.

### See Also:

> erase

Return to command index

Last updated: March 7, 2020 at 1:06pm