napkin-sketchdocs 1.0.0 GitHub

Effects and the Appearance panel#

On this page

New in 1.0.0-alpha.5.0.0.

At a glance#

The Effect menu#

RowWhat it addsWhere Illustrator or Photoshop has it
Blur > Gaussian BlurA blur of the whole markEffect > Blur > Gaussian Blur
Adjust Colors > Brightness, Contrast, Saturate, Grayscale, Sepia, Invert, Hue Rotate, OpacityA change to the mark's colors, as the CSS filter of the same name makes itEdit Colors, and Photoshop's adjustments
Stylize > FeatherFades the edge, from clear at the edge to solid its radius insideEffect > Stylize > Feather
Stylize > Outer ShadowA shadow behind the mark, offset, blurred and spreadEffect > Stylize > Drop Shadow
Stylize > Inner ShadowA shadow cast inside the mark's edgePhotoshop's Inner Shadow
Stylize > Outer GlowA glow around the markEffect > Stylize > Outer Glow
Stylize > Inner GlowA glow inside the edge, or from the centerEffect > Stylize > Inner Glow
Stylize > BevelA raised or sunken edge, inside the mark (Inner Bevel) or outside it (Outer Bevel)Photoshop's Bevel and Emboss
Stylize > EmbossThe mark raised from the page (Emboss) or pressed into it (Pillow Emboss)Photoshop's Bevel and Emboss
Stylize > SplatterThe fill drawn as a loose hatch, as a pen scribbles a shape in (see Splatter)Effect > Stylize > Scribble
Warp > Arc, Arch, Unroll, Shell, Windy, Breezy, Curvy, Chart, Puffy, Expand, Cram, TwirlThe selection bent by a style, live (see Warp)Effect > Warp
3D > Extrude, RevolveThe mark built in depth and drawn as shaded faces (see 3D)Effect > 3D (Classic) > Extrude & Bevel, Revolve
3D > 3D OptionsThe panel that sets the selection's 3D live (see 3D Options)Window > 3D and Materials

The rows above the effects and below them:

The submenus open with nothing selected, to show what is in them; their rows are greyed until something is.

Apply Last Effect, Last Effect, Expand Appearance and Clear Appearance are at the end of the canvas's right-click menu too.

What an effect goes on#

An effect goes on the selected marks, or on the groups lit in the Layers panel when a group row is lit. A group's effects work on its whole picture, the marks inside drawn together first, so a shadow under a group is one shadow, not one per mark.

A group takes a Warp as one: its marks bend together over the box of everything it holds (see Warp). A Splatter and 3D draw on a mark's own shape, which a group has none of, so a group takes neither.

A mark's effect can be aimed at its stroke, its fill, or the whole mark. An effect on the fill works on the fill alone, under the stroke, so a fill can glow while its outline stays crisp; an effect on the whole works on the two together. Text has a fill, its ink, and no stroke; a picture has neither, so its effects are always on the whole of it.

The Appearance panel#

The panel opens docked beside the canvas, as the Layers panel is, and can be undocked to float over the drawing like any palette. Its rows, top to bottom:

  1. What is selected: Path, Text, Image, Group, Mixed Objects, or how many.
  2. Stroke, with its color and width, and under it the effects on the stroke.
  3. Fill, with its color, and under it the effects on the fill. A swatch with a red slash is no fill, and a striped one stands for marks that differ.
  4. The effects on the whole of the selection.
  5. Opacity and the blend: the opacity and the blend of the selection's layers, as the Layers panel sets them.

Each effect's row has:

Selecting a row aims the next effect. With the Fill row selected, an effect added from the Effect menu or the panel's fx goes on the fill; with an effect's row selected it goes where that one is. A click on the panel's empty space aims it at the whole again.

Reordering. Drag a row: over the top half of another row it lands before that one, over the bottom half after it, and over the Stroke or Fill row it moves to the end of that row's effects. Effects work in the order they are listed, top first, so the order changes the look: a blur above a shadow blurs the mark before the shadow is cast from it.

A right-click on an effect's row offers Duplicate, Delete, Move to Fill, Move to Stroke and Move to Object.

The panel's foot holds fx (Add New Effect: the Effect menu's rows as a drop-down), Clear (Clear Appearance), Duplicate and Delete, the last two for the selected effect's row.

When several marks are selected and their effects differ, the panel says Mixed Appearances: a new effect is added to each of them, and Clear Appearance clears them all, but rows of one mark cannot be edited for the others.

Every change in the panel is one undo step.

Keys in the panel#

KeyOn an effect's row
EnterOpens its options
Delete, BackspaceDeletes it
SpaceSelects it, which aims the next effect
Alt+Up, Alt+DownMoves it up or down among the effects on the same part

An effect's options#

The options are one form for every effect, under the effect's name: lengths in pixels, shares and percents out of 100, angles in degrees with a dial beside them, colors, blend modes and choices. A bevel's and an emboss's Highlight and Shadow fields sit under headings of their own. A 3D's options are a panel of their own, which sets them live: see 3D Options.

The popup opens at the top right of the canvas and can be dragged anywhere. Another edit made while the preview is up, such as a move, keeps the effect as it stands, as an undo step of its own, and closes the popup. An undo does the same and then takes that step back, so the effect goes.

The Properties panel#

The Properties panel's Appearance section ends with three things Illustrator's Properties panel has: an Opacity field and blend for the selection's layers, an fx button that drops the Effect menu's rows down, and a line saying how many effects there are, which opens the Appearance panel.

Effects and transforms#

While Scale Strokes and Effects is on (Verbose Settings, Sketch Support; Illustrator's preference of the same name):

A Warp is laid over the box the mark covers on the page, so it has no length to scale and no angle to turn: a turned arc still bends across the page. A 3D effect's depth, offset and move scale with the mark, and a mirror mirrors its view; turning the mark turns the shape it builds from.

A text item is neither turned nor mirrored in the drawing, and a picture is not turned, so their effects are not either. With the setting off, a transform leaves the width and the effects as they were.

Splatter#

Stylize > Splatter is Illustrator's Scribble: it draws a mark's fill as one loose, continuous hatch, back and forth across the shape at an angle, as a pen scribbles a shape in. The outline still draws as it was. Its options, with Illustrator's names:

OptionWhat it does
SettingsA preset: Default, Childlike, Dense, Loose, Moire, Sharp, Sketch, Snarl, Swash, Tight or Zig-zag. It sets every other option; changing one by hand makes it Custom
AngleThe hatch's direction, in degrees counterclockwise from the right
Path Overlap, and its VariationHow far each turn reaches past the edge; a negative overlap stops short of it
Stroke WidthThe hatch line's width
Curviness, and its VariationHow round each turn is: 0% is a sharp zig-zag, high values loop
Spacing, and its VariationThe distance from one pass to the next
SeedWhere the variations come from: the same seed draws the same hatch every time

The Default preset is Illustrator's own. The others are napkin-sketch's reading of what each one looks like.

Warp#

Effect > Warp is Illustrator's Effect > Warp: it bends what it is on by a style, laid over the box it covers, and stays live - the mark keeps its own anchors, and the bend is redrawn as they change. The Warp Options, with Illustrator's names:

OptionWhat it does
StyleOne of the twelve below. The thumbnail above the fields shows it bending a grid as the fields are set
PartFor Arc: the Whole box, or its Lower or Upper edge alone; for Shell, its Lower or Upper edge. The other styles bend the whole
OrientationHorizontal bends along the box's width; Vertical along its height
BendHow far, -100% to 100%; a negative bend bends the other way
Distortion: Horizontal, VerticalA taper across the box or up it, -100% to 100%, as a perspective gives one, laid on before the bend
StyleIllustrator's styleWhat it does
ArcArc, Arc Lower, Arc UpperBends the line through the box's middle into an arc, its length kept
ArchArchLifts the middle of the box, its sides upright
UnrollBulgeSwells the box's height at its middle, top and bottom alike
ShellShell Lower, Shell UpperBows one edge out and keeps the other
WindyFlagOne wave across the box, top and bottom together
BreezyWaveA wave whose phase drifts with the height
CurvyFishA body that swells, then narrows to a tail
ChartRiseClimbing to the right
PuffyFisheyeSwells the middle and bows the edges out
ExpandInflateBows every edge out at its middle
CramSqueezePulls the sides in at the middle of the height
TwirlTwistTurns the middle most and the corners least

Effect > Warp > Twirl is the Warp style. Liquify's Twirl, under Transform > Liquify, is a brush that pushes the drawing round where it is dragged.

The styles are napkin-sketch's own reading of what each one looks like.

3D#

Effect > 3D is Illustrator's Classic 3D: it builds a mark in depth and draws it as flat, shaded faces - vector shapes in every format. Extrude sets the mark's shape deep, front and back caps and a side for every edge; Revolve sweeps it round an upright axis at its left or right edge.

Either builds the selection at once, as one undo step, and opens 3D Options on it; on a mark built already it changes the kind and keeps the rest. The selected 3D mark shows the gumball. The options, with Illustrator's names:

OptionWhat it does
KindExtrude or Revolve
Extrude DepthHow deep the shape is set; it stands half in front of the page and half behind
AngleHow far round a revolve goes: 360 is a full turn
Offset, FromHow far the axis stands off the shape, and which edge it stands at
StepsHow many steps round a revolve takes; 0 takes as many as it needs to look round
CapCloses the ends: off, an extrusion is hollow, and a revolve short of a full turn is open
Turn about X, Y, ZThe turn, in degrees, X first; the default, -18, -26 and 8, is Illustrator's Off-Axis Front
Perspective0 for none, up to 160 degrees for a near, wide view
Move, ScaleWhere the solid stands from where it was built, and how big, along each axis
ShadingPlastic (lit, with a highlight), Diffuse (lit), No Shading (flat) or Wireframe (the edges alone)
Light From, Light Height, Light Intensity, Ambient LightWhere the light comes from - degrees round from the right, and up off the page - and how strong it and the light all round are

Illustrator's bevels and mapped artwork are not drawn.

3D Options#

Effect > 3D > 3D Options opens the panel; so do Extrude and Revolve, a 3D's row in the Appearance panel (its fx button, a double-click or Enter), and a double-click on the gumball's ball. Like the Appearance panel, it stays up while the drawing goes on, docks the first time it opens, and shows whatever is selected.

The gumball#

A 3D mark selected alone, with the Select tool, shows the gumball: Blender's and Rhino's, in their colors - X red, Y green, Z blue - standing at the solid's middle along its own axes. It moves, turns and scales the 3D in depth; the mark's own shape stays where it is.

The gumball on a 3D mark turned Off-Axis Front: an arrow, a scale box, a square and an arc for each axis, the ball and the ring

PartA dragWith a key
ArrowMoves it along that axis
Box past an arrowScales it along that axis
Square between two axesMoves it in their planeAlt: scales it in that plane
Arc round an axisTurns it about that axisShift: in steps of 15 degrees
BallMoves it across the viewShift: scales it whole, twice the size for every 100 pixels right or up
RingTurns it freely, as a trackball does

Text through its outlines#

A Warp, a Splatter and 3D work on a text through its glyphs' own outlines, read from its font's file on this computer, and the text stays text: it is typed and set as before, and the effect follows what it says.

Use Preview Bounds#

With Use Preview Bounds on (Verbose Settings, Sketch Support; off to begin with, as in Illustrator), a selected mark's dashed box takes in what its effects paint past its ink, a click on a mark's glow or shadow picks the mark, and the Properties panel's position and size are the box's. Effects that paint only inside the mark, such as an inner glow or a feather, add nothing.

In files and scripts#

The effects are saved in the .skbk file with the mark, layer or group they are on, and a script writes them with effect lines (see the script language). PNG and JPEG exports draw them as the canvas does, and SVG as filters. A PDF and the Illustrator script have no form for the effects that change pixels: they draw what carries the effects without them and name each effect left out, the app in a report in the corner and the command line in its warnings. A Splatter they draw, as the lines it is, a Warp as the bent shape, and 3D as its faces.