napkin-sketchdocs 1.0.0 GitHub

Transform, Rotate, Mirror, Mesh Warp, Liquify and Wipe Stacks#

On this page

At a glance#

The Transform box#

Changed in 1.0.0-alpha.5.0.0: the box scaled the characters of a text in a box too, and a mark's stroke width but none of its effects.

Transform (Ctrl+T, the **Transform button beside Mirror in the toolbar, or Transform > Transform Box; the button is pressed and the row checked while the box is up):** puts one box around everything selected, with a handle on each corner and the middle of each side, and scales it by dragging one. The box stays up while it is in use — press Ctrl+T again or Escape to put it away — and a press anywhere off a handle still belongs to the tool underneath, so the selection can be changed without dismissing the box first.

It comes up by itself. With Transform box on selection on, as it is to begin with (a switch in Quick Settings and in Verbose Settings), the box appears around whatever the Select tool selects and goes when nothing is selected or another tool is taken; Escape or Ctrl+T put it away for that selection, and the next selection brings it back. A 3D mark keeps its gumball, which the box would hide, and a path text's brackets, which stand where the box's handles do, are what a press on them grabs. Off, the box is put up by hand, as above.

Rotate#

Rotate (Ctrl+R, Transform > Rotate…, or the Rotate button beside Move): turns the selection about a centre point, in a palette that opens in the top-right rather than centred - the canvas under the selection is where the rotation is dragged, so a centred panel would be sitting on the pixels the gesture needs.

Mirror#

Mirror (O, Transform > Mirror…, or the Mirror button after Clear): reflects the selection, in a palette that opens in the top-right like Rotate's.

Mesh Warp#

Mesh Warp (below the tools in the side rail): bends art by pins, as Illustrator's Puppet Warp does. It has no key, as in Illustrator.

Gradients and dash styles are written into exported SVGs as real <linearGradient> / <radialGradient> paint servers and stroke-dasharray values, so other editors see them, and they round-trip back into napkin unchanged.

Liquify#

New in 1.0.0-alpha.4.6.0.

Liquify (Shift+R, Transform > Liquify, or its button after Mesh Warp's below the tools in the side rail): bends the marks under a brush, as Illustrator's Warp tools do. The key or a press on the button opens its panel of four brushes, two by two; the arrows move round it and Enter chooses.

BrushWhat it does
WarpPushes the outline along the drag, like clay: what is under the brush's centre goes the whole way
TwirlTurns what is under the brush about its centre, clockwise, for as long as the press is held
PuckerDraws what is under the brush in toward its centre, while held
BloatPushes what is under the brush out from its centre, while held

A script bends with warp, twirl, pucker and bloat (Drawing with napkin script).

Wipe Stacks#

Wipe Stacks (Transform > Wipe Stacks, after Close Shape, the canvas's right-click menu, or the tiles in the Shape Stacker's panel): combines the selected shapes as Illustrator's Pathfinder does. It takes two or more shapes, and its rows are greyed until two are selected. As in Illustrator the rows have no keys; Edit Keyboard Shortcuts can give them some.

RowPathfinderWhat is leftPainted as
Wipe InUniteeverything the shapes cover, as one shapethe topmost shape
Wipe Out > Subtract Top from BelowMinus Frontthe bottom shape, less the ones above itthe bottom shape
Wipe Out > Subtract Below from TopMinus Backthe top shape, less the ones below itthe top shape
Mid WipeIntersectonly where every shape overlapsthe topmost shape
Outer WipesExcludewhere an odd number overlap: two shapes lose their overlap, three keep their middlethe topmost shape
Clean WipeDivideevery piece of the overlaps, a shape each, each on a layer of its ownthe topmost shape over the piece

Docking the editing panels#

Docking the editing panels: Move, Rotate, Mirror, Page Settings, and Sharpen Selection are floating palettes - dragged by their title or by the narrow band at their border, resized from their corner, and kept on screen if the window shrinks. Each also carries a small button in its title bar that docks it: the panel leaves the drawing and becomes a column beside the layers and properties panels, so the canvas gives up the width rather than being covered. The same button undocks it, back to the exact position it was floating at. A docked panel that is closed stays docked, and the dock takes no space at all while it is empty.