atelier · · pixel-art · aseprite · animation · gamedev
aseprite, the parts that matter: ramps, dithering, a four-frame loop, and a clean export
Aseprite is a paid pixel-art and animation editor from Igara Studio. Its source is public on GitHub, but the licence is a custom EULA rather than an open-source one: you may compile and modify it for personal use or to propose contributions, but you may not redistribute it. The official builds cost a minimum of US$19.99 and include updates through v1.9. The art you make with it is yours to sell, games included. At the time of writing the stable line is v1.3.x, and the latest release on GitHub is v1.3.18.6 (September 2026). Everything below is checked against the official documentation for that line.
Fix the palette before you draw
Pixel art falls apart fastest when colours multiply. Decide the palette first, keep it small, and build it from ramps: runs of colours that climb in brightness and play well together.
A ramp that only changes brightness (a “straight ramp”) gives you muddy shadows and highlights that never match the neighbouring material. Better ramps shift hue as they brighten. Raymond Schlitter (Slynyrd), whose palette tutorials are the standard reference, shifts hue by a positive amount as brightness rises, so lights get warmer, and tops out around 20 degrees of hue between swatches. He also lets saturation peak in the middle of the ramp and drop at both ends, because very bright, very saturated colours burn the eyes and very dark, very saturated colours turn heavy.
You can use his numbers or ignore them, but the principle is practical. Sample a ramp of five to nine swatches, check that adjacent steps contrast evenly, and put the whole thing into the palette bar. Aseprite loads palettes from a PNG, so any palette you find or make elsewhere drops straight in.
Keep the working sprite in RGB mode while drawing and convert to Indexed only if your target needs it. Indexed mode lets you swap palettes later, which is the cheap route to enemy recolours: the CLI can save one sprite out with several palettes in a single command.
The shading ink
Aseprite has a Shading ink that works on a gradient of colours you select in the colour bar. With the ink active, left click moves each pixel one step towards one end of that gradient and right click moves it the other way. It does not invent colours, so it can only shade with swatches you have already chosen. That constraint is the point: a ramp you built carefully does the work, and every shadow lands on a colour that belongs in the palette.
Dither on purpose
Aseprite’s Gradient tool has a dithering option with no dithering, or Bayer matrices at 2x2, 4x4 and 8x8. The same Bayer matrices drive RGB-to-Indexed conversion from the command line.
Dithering earns its place on large, smooth surfaces with a tight palette: sky, a rock face, a big shadow cast on a wall. It does not earn it on small sprites. At 16 to 32 pixels, a checkerboard between two ramp colours reads as noise and fights the silhouette. Rules of thumb that hold up:
- Dither between adjacent ramp colours only. Jumping two steps looks like a texture, not a gradient.
- Choose a Bayer size by the area. 2x2 is the coarsest pattern and the most visible; 8x8 gives finer steps and suits large gradients.
- Never dither anything that moves. The pattern is locked to the canvas, so it shimmers when the sprite shifts between frames. Animated characters want clean, flat clusters.
Outlines, and when to skip them
Edit > FX > Outline (Shift+O) outlines everything that is not the Background Color you specify. You can place the line inside or outside the shape, choose the outline colour, and apply it to the selection or to every cel at once. That last setting is the time saver for animation.
A pure black outline is the default choice and the lazy one. Selective outlining, where the outline colour is a dark member of the object’s own ramp, and where it thins out or disappears on the lit side, keeps a sprite from looking like a sticker on its background. A practical workflow: outline everything with a dark ramp colour first, then hand-edit the lit edge to a mid-tone. Where two shapes of different materials touch inside the sprite, you usually need no line at all; the colour change does the job.
Turn on pixel-perfect mode in the context bar while drawing lines by hand. It removes the doubled corner pixels that freehand strokes create, which otherwise make outlines look lumpy.
Animation: tools worth knowing
The workflow in the docs is plain: draw a frame, add a new one with Alt+N (which copies the current frame), step with the arrow keys or comma and full stop, and press Enter to play.
- Onion skinning (F3) shows neighbouring frames in the editor. In its settings you choose how many previous and next frames to show and can tint them red and blue. Two frames each way is plenty for short loops.
- Tags mark frame ranges as separate animations, so one file holds idle, run and hit. Select the frames and press F2 twice: the first press creates a Loop tag, the second opens its properties. A tag can play forward, in reverse, or ping-pong.
- Per-frame duration is set from Frame Properties (the P key), or on a selected range of frames from the timeline.
- Linked cels share one image between frames. On a continuous layer, copying a cel links it, and editing one edits all. Use it for backgrounds or any part that holds still. Unlink from the right-click menu when a frame needs its own version.
The twelve principles, at four frames
Disney’s twelve principles (Thomas and Johnston, 1981) were written for hundreds of drawings per scene. At pixel-art frame counts only a handful survive, and they matter more because each frame is expensive. The ones that carry a short loop:
- Timing: the number of frames for an action sets its apparent speed and weight. Heavier things take longer to get going.
- Slow in and slow out: more frames near the extremes of a motion, fewer in the middle. In Aseprite you get this by giving the extreme frames longer durations rather than adding drawings.
- Arcs: natural motion follows curved paths; keep a swinging limb or a hopping body on an arc.
- Anticipation and follow-through: a dip before a jump, a tail or scarf that settles after the body stops.
- Moving hold: even an idle pose should breathe, as the principle puts it, to keep it from looking lifeless.
A worked example: a four-frame idle breath
A 32x32 character, standing, loops forever. The goal is a slow breath with a small cloth or hair follow-through. Total cycle: 800 ms.
- Frame 1, rest pose, 200 ms. Draw the character fully. This is the key pose; everything else is a variation of it. Check the feet. They never move in this loop.
- Frame 2, inhale, 200 ms. Duplicate frame 1 (Alt+N). Select everything above the hips and move it up one pixel. Nudge the chest outline one pixel outward if the sprite is facing front. Leave the feet alone.
- Frame 3, top of the breath, 200 ms. Duplicate frame 2. Keep the torso where it is; the head moves at most one more pixel, and only if the silhouette still reads as the same person. Move the cloth, hair tip or scarf end down one pixel instead. That is follow-through: the loose part lags the body by one frame.
- Frame 4, exhale, 200 ms. Duplicate frame 1 and shift the torso down one pixel from rest, then let the cloth settle back up. Because frame 4 sits slightly below the rest pose, the loop passes through frame 1 and reads as a cycle rather than a jump cut.
Set the tag to Loop, then turn on onion skinning with one frame each side and check that no pixel moves more than a pixel between consecutive frames. To feel slow in and slow out, hold the extremes (frames 1 and 3) at 300 ms and let frames 2 and 4 pass in 100 ms each, still 800 in total. The extremes hold and the middle frames hurry, which makes the breath feel weighted without redrawing anything.
For a walk or run, the same method scales to six or eight frames: contact, down, passing, up for each leg. Draw the contact and passing poses first, then fill in.
Exporting for a game
Save as .aseprite for the master file. For the game, use File > Export Sprite Sheet. You can pick all visible layers or one layer, and select frames by tag. The layout can be horizontal, vertical, rows, columns, or packed. The same options exist on the command line, which is better for a build pipeline because it makes exports repeatable:
aseprite -b hero.aseprite --sheet hero.png --data hero.json --format json-array --list-tags --sheet-pack --trim --extrude --shape-padding 2
What the flags do, per the CLI docs:
-bruns without the UI.--sheetand--datawrite the image and its metadata.--formatchoosesjson-hash(the default, keyed by frame name) orjson-array.--list-tagsincludes the tags in the JSON, so your engine can find the idle and run ranges without hard-coded frame numbers.--sheet-packpacks frames to avoid wasted space;--trimremoves transparent borders per frame.--extrudeduplicates each frame’s edge pixels by one pixel, and--shape-paddingleaves a gap between frames. Both exist to prevent texture bleeding when the GPU samples neighbouring pixels at non-integer scales.--ignore-layer "Guides"hides a reference layer;--tag "Run"exports only that tag.
Each frame entry in the JSON carries its position and size on the sheet, whether it was trimmed, and a duration in milliseconds, the same per-frame timing you set in the timeline. Your engine should read that value instead of assuming one global frame rate, or the slow-in timing above is lost on export.
To export one-offs rather than a sheet, --save-as with {tag}, {layer} and {frame} placeholders produces a file per tag or per layer. For an animation to share, File > Export gives you GIF or a PNG sequence, with a Resize field for scaling up. GIF is limited to 256 colours, so RGB sprites with more than that, or with layers using blend modes, will shift colours on export. Use an Indexed palette to be safe. Aseprite also has an Export for Twitter option that fixes an invalid last-frame delay.
Sources
- Aseprite FAQ: pricing, licensing, updates
- Aseprite EULA
- Aseprite v1.3.18.6 release on GitHub
- Aseprite docs: Animation
- Aseprite docs: Onion skinning
- Aseprite docs: Tags
- Aseprite docs: Frame duration
- Aseprite docs: Linked cels
- Aseprite docs: Shading ink
- Aseprite docs: Context bar (pixel-perfect, gradient dithering)
- Aseprite docs: FX (Outline)
- Aseprite docs: Exporting
- Aseprite docs: Sprite sheets
- Aseprite docs: Command line interface
- Sprite sheet JSON (json-array) example by the Aseprite author
- Slynyrd, Pixelblog 1: Color Palettes
- Twelve basic principles of animation (Wikipedia)