Pixel Art

Pixel Art Basics: Grids, Palettes and Shading

By MosaicBits Editorial Team · · 5 min read

Pixel art is drawing where every single square counts. Each dot is placed on purpose, and the limits, a small canvas and a small set of colors, are what give the style its charm. It appears in games, icons, animations and illustration, and it is a good way to learn the fundamentals of shape, color and light.

This guide covers the basics you need to start: the grid, the palette, line work and shading.

Start With a Small Canvas

Beginners often open a large canvas and get lost in details. Start small. Common sizes include 16 by 16, 32 by 32 and 64 by 64 pixels. A small canvas forces you to simplify and decide what matters.

Work at a magnified zoom so each pixel is easy to see and click. Many pixel art programs and general image editors allow you to show a grid overlay, which helps you place pixels accurately.

When you export, scale the image up by whole-number multiples such as two, four or eight times, using nearest-neighbor scaling. This keeps the edges crisp. Smooth scaling methods blur the pixels and ruin the look.

Choose the Right Tool Settings

Use the pencil tool with a size of one pixel, with anti-aliasing turned off. Anti-aliasing blends colors at edges, which creates extra in-between shades you did not choose. Pixel art depends on hard, deliberate edges.

Work on separate layers when you can: one for line work, one for color, and one for shading. It makes corrections easier. Save your files in a lossless format such as PNG, since lossy compression would add stray colors and blur.

Building a Limited Palette

A palette is the set of colors you allow yourself. Fewer colors make an image look more unified and make shading decisions simpler. Many appealing pieces use somewhere between four and sixteen colors.

Some tips for building one:

  • Start with a base color for each material, such as skin, cloth or metal.
  • Add a darker shade and a lighter shade of each base. This gives you a shadow tone and a highlight tone.
  • Shift hue, not only brightness. Shadows often look richer when they lean toward a cooler hue such as blue or purple, and highlights lean warmer. This is called hue shifting and keeps images from looking flat or muddy.
  • Reuse colors across the image. Sharing shades between objects ties the picture together.
  • Check contrast. Make sure important shapes separate clearly from the background.

You can also use a ready-made palette that is freely shared online, which is a good way to learn how others balance colors.

Drawing Clean Lines

Line work in pixel art has its own rules. The aim is for lines that look smooth when viewed at the normal size, even though they are made of squares.

  • Avoid jaggies. These are stray pixels that break the flow of a line. A clean diagonal uses steps of consistent length, such as two pixels across for every one down.
  • Avoid doubles. Pixels that touch both sideways and diagonally create thick, lumpy corners. Remove the extra pixel so the line has a single pixel thickness at each point.
  • Use smooth curves. A curve should grow its step lengths gradually, for example 1, 2, 3 then 3, 2, 1, rather than jumping unevenly.
  • Consider outlines. A dark outline can make a sprite readable on any background. Some artists use a darker version of the fill color instead of black for a softer look.

Zoom out frequently to check how the image reads at actual size, as errors that look small up close can appear obvious at a distance.

Shading Basics

Shading shows form and gives depth. Start by choosing a single light source, such as light from the top left, and apply it consistently across the whole piece.

  1. Fill the shape with its base color.
  2. Add shadow on the side facing away from the light and underneath the form, using the darker shade.
  3. Add highlights on the side facing the light, using the lighter shade, keeping them smaller than the base area.
  4. Place a cast shadow on the ground or on adjacent surfaces if needed.

Keep shading shapes simple and follow the form of the object. A sphere shades in curved bands, while a box shades in flat planes.

Dithering

Dithering uses patterns of two alternating colors, like a checkerboard, to suggest an in-between shade or a gradient when your palette is limited. It gives a textured, classic look. Use it deliberately and in moderation, as too much creates visual noise, especially in small sprites.

Banding and pillow shading

Avoid pillow shading, where you darken the edges of every shape all around regardless of the light source. It makes objects look flat and puffy. Also avoid banding, where shade bands run parallel to the outline and form tidy stripes without regard to the form.

Simplify and Read the Silhouette

A strong pixel art piece reads clearly as a silhouette. Fill your drawing with a single dark color in your mind, or on a test layer, and see whether the shape is still recognizable. If not, adjust proportions, exaggerate key features and remove details that confuse the shape.

At small sizes, a few pixels can carry a lot of meaning. An eye might be one or two pixels. Choose them carefully.

Practice Ideas

  • Draw a simple fruit or tool at 16 by 16.
  • Recreate a small object you can see on your desk.
  • Make a tiny character with only a four-color palette.
  • Take a photo, reduce it to a tiny size and repaint it by hand.
  • Redo the same drawing with a different light direction.

Short, finished studies teach more than a long, unfinished one.

Frequently Asked Questions

What canvas size is best for a beginner?

A size of 16 by 16 or 32 by 32 pixels is a good place to begin. It is small enough that you can finish a piece quickly and learn the basics of shape and shading without being overwhelmed by detail.

Do I need special software to make pixel art?

No. Any image editor with a one-pixel pencil tool and a grid will work. Dedicated pixel art programs add helpful features such as palette management and animation timelines, but they are not required to start.

How many colors should I use?

Use as few as you can while still showing form. Many beginners do well with a palette of four to eight colors. You can add more once you understand how to use shade, hue and contrast.

Related reading