Art Bootcamp Notes · 24 · Pixel art

Pixel Art Lines, Curves and Shapes: Make Every Pixel Intentional

Clean pixel lines and curves, readable shapes, and the tips that keep pixel art simple, interesting, precise and natural, all in Aseprite.

LIPAI WANG By LIPAI WANG · Chapter 24 of his book Art Is a Puzzle You Can Solve

I always start with the basics: how to draw a straight line, then a curve, then a rounded, more organic shape, then 2D shapes like a square, a circle or a triangle, and then I rotate them in 3D space to make them more 3D-ish. Pixel art is no different, and there’s a good reason to start here. In pixel art, a line is not a line. It’s different pixels combined together.

Until now we’ve been drawing freehand without giving it a thought: pick a colour, boom, there’s a line. But the line on the canvas is not exactly what you wanted. It doesn’t represent 100% the trail your digital pen drew. In this chapter you’ll see why, and how to take control of it: how a straight line is really built, how to clean up a curve, how to shade a simple shape, and then a handful of tips I use all the time. Make it simple. Make it interesting. Make it precise. Make it natural.

Lines are stairs

First, of course, there is the Pixel-perfect option at the top of the screen. It modifies your trail as you draw. If I switch it off, you might say, “Well, now I can do whatever I want.” More or less. But zoom in and you’ll see this is not exactly a line. It’s pixel, pixel, pixel, pixel. In Photoshop or a more painterly program, a line still feels pretty smooth even when you zoom in a lot, though eventually you’ll get this too. In pixel art it shows straight away, because every canvas is really small. A line isn’t a straight line going down. It’s like stairs: going down, going down, going down. That is one of the crucial differences between painterly or freehand drawing and pixel art. The line will not be exactly what you expected.

Let me show you what I mean with the line tool (L). Draw a line perfectly from left to right and it’s pretty good. Now move the end up just a little. The line divides into two parts. That represents a really tiny angle, but it’s definitely not what you expect. You’re expecting a really smooth line, and in fact it’s just one line stepping up into another. Up a tiny bit more and it divides into three parts. A tiny bit more: four, five, six, seven, eight, nine, ten. It just becomes mathematics. As the angle increases, the program adds different blocks, going one pixel up, one pixel up, one pixel up. You can go really steep, all the way up, all the way down, even out past the edge of the canvas.

So what’s the mathematics behind it? It all comes down to the ratio. A perfect 45-degree line is one up, one right, one up, one right. Now let me lower the angle a little. As I do, some of the blocks change. I get one, dot, dot, dot, then two, dot; one, dot, dot, then two, dot. I want to lower it to the angle that gets rid of all those single dots, until everything is just steps of two. There: that’s the sweet spot. Up, two dots; up, two dots; up, two dots. Lower again and you’ll find steps of three. You can find all these sweet spots.

A 32 by 32 pixel canvas on a four-tone grey checker background, crossed by about a dozen black one-pixel lines fanning out from the lower left at different angles; each line is a staircase of pixel runs of different lengths.
Figure 24.1. Lines drawn with the line tool at many angles, zoomed in on part of a 32 × 32 canvas. Look at the steps: the 45-degree line is one pixel across for each pixel up, the gentler lines are built from runs of two, three and more, and where the angle falls between two sweet spots the runs alternate in length.

So the program uses the ratio: how much you go up and how much you go right. Where the line is steep, a lot of squares go up and only a tiny few go to the right. Where it’s shallow, a lot go right and only a few go up. It uses the frequency in between to adjust the angle, so a line in between might be 1, 2, then 1, 1, 2, 1, 1, 2, 1.

I don’t want to get too mathematical about this, but there is really simple maths behind it. If you don’t want to hear it, don’t worry about it; it’s not important. But I want you to know how it’s done, why sometimes the line is not what you expect, and how to modify it.

Say you start at point A and end at point B. How the pixels get from A to B doesn’t matter. The only things that matter are the places A and B. Call A (x₁, y₁) and B (x₂, y₂). The angle θ is:

θ = arctan ((y₂ − y₁) / (x₂ − x₁))

English is not my mother tongue, so I’ll use mathematics as the common language. The jagged line doesn’t affect the angle; the angle is just the connection between A and B. The program is designed to connect them as smoothly as possible. At 45 degrees that’s perfect: one block right, one up, one right, one up. But sometimes you need a lower angle. Two blocks to the right and one up gives you a tangent of 0.5, and the arctangent of 0.5 is about 26.5 degrees. For exactly 30 degrees you’d need the square root of three across for every one up, and of course you can’t do that, because the smallest unit is one pixel. So the program inserts steps, a two, then a three, and so on, to get from one point to the other as smoothly as possible. You don’t need to understand the algorithm. It is achieving a really simple goal: to connect point A to point B as smoothly as possible.

Fixing what the algorithm gives you

The algorithm gives you a line, but it’s not perfect. Here comes your problem: sometimes you get a really jagged spot. Take your eraser. This pixel here looks kind of weird, so you get rid of it, and whoa, the line is broken. But what if I erase it and put a pixel here instead? That works too. It really depends on your taste.

If you want a line to look less weird, you can modify certain parts. Where two pixels sit too close, erase one, then use the brush to reconnect. You might like a pixel-perfect style, or a line that’s not so straight. If you want it more straightforward, add one pixel to the left or right. Sometimes you can omit a pixel here and the line still makes sense, still connected. What you can’t do is omit one in the wrong place, because then the line breaks.

My suggestion is this: use the automatic line from one place to another, and then where it has automatically added things, add to both sides to make it run smoother. That’s your personal discretion. Sometimes a line becomes too wiggly for me, and adding to both sides makes it more natural. You don’t want a really boring, automatically generated line, but you can always use the automatic tool and then add a little.

So the line is about ratio. It’s about the starting point and the end point, how many blocks you go right before you go up, or up before you go right, plus some smooth insertions so the blocks get from place A to place B. I’m not a maths professor; I was pretty bad at maths at school. But now when you use the line tool, you know it may not be perfect. You can always modify it and make it whatever you want, to give it more human touch instead of making it too robotic.

Try it. On a small canvas, draw a horizontal line with the line tool (L), then drag the end point up a little at a time and count how the line breaks into two, three, four parts. Find the sweet spots where every step is the same: one up and one right, then two, then three. Finally take one jagged line and clean it up with the eraser and brush without breaking it.

Curves represent life

With a straight line it’s a little like street science: you calculate the starting point, the end point and what’s in between. But you can make it organic by adding pixels on both sides, so you don’t need to worry too much about the algorithm. Here’s the trick: you can modify whatever you want, as long as you don’t break the line. If you erase and break the line, that’s a bad move. That’s the least I can suggest to you.

Now the curve. I think the curve is more important than the straight line, because a lot of what you design in pixel art is organic, and curves represent life. Nothing in life has really rugged edges. Even a man-made object with rugged edges, left in nature for a long time, will get rounded by erosion and all that. So curves represent something more friendly or lively. Here’s the general rule of thumb: round is for lively things; sharp edges, the regular shape tools like the circle or square, are for the man-made: a computer, a keyboard, a treasure chest. (A coin is man-made but round, so that’s a bad example. But it’s the rule of thumb.)

When you draw a curve freehand without Pixel-perfect, you’ll notice the line isn’t perfect. That’s where you modify it, but don’t stress yourself out. Zoom in on the part that looks a little weird and erase just one pixel. While you work, keep looking at the small preview window. It shows the drawing as it will be on screen, so look at it, move away, come back. I do this a lot while I draw.

Remember, the key is not to get a line break. Don’t erase a pixel that will break the shape. Where you have a not-so-perfect, doubled-up spot, there are several solutions, like solving a maths problem. Erase this pixel; that’s okay. Or erase that one and put it here; that’s okay too. The trick is to find those doubled, not-so-pixel-perfect areas and fix them manually. If you think a part sticks out too sharply, make it smoother: erase, move the pixels up a little, and let the curve come out gradually instead of dropping straight down. Delete a pixel, still works; delete another, still works. As long as the edges stay connected, it still works. Zoom out and it’s more curvy.

Of course you can use Pixel-perfect, and you can see it correcting things as you move along. But personally I feel that Pixel-perfect is a little bit laggy. When you hold your pen and draw, it sort of drags and corrects you along the way, and you feel you lose control. You don’t get 100% of what you thought expressed. At least for me that’s a little frustrating, so in my “crazy stage” I sometimes just switch it off, and modify things manually later.

As a quick practice I drew a spiral, a shell-like thing, something from the sea, something you might collect in a game. Then I used the bucket tool (G) to fill it with a colour, and a darker colour underneath to start some shading. In a game that would be really small, some collectible that a monster drops when it dies. It doesn’t have any meaning except that you can collect it and sell it. But it’s a pretty good, really quick practice of the curve.

Try it. Draw a spiral freehand with Pixel-perfect off. Zoom in, find every doubled or sharp spot, and fix it by erasing or moving single pixels without ever breaking the line. Check the preview window as you go, then fill the shape with the bucket tool (G).

Shape: give it faces and a light source

Shapes are things like a cube or a circle, but what I want to talk about is the colour in the shape. The most common shapes you’ll meet are the presets: the rectangle tool and the ellipse tool. Draw a rectangle in a blackish colour, then use the bucket tool (G) to fill it with whatever colour you think fits. But that’s too clean a shape, and it’s not 3D-ish. Even though pixel art is a fairly flat art style, I personally tend to add a little shading. A really flat shape is not what you want. Change it just a tiny bit to make it more 3D-ish.

So instead of the shape tool, I go to the line tool and do it myself. Say I want a chest. I connect the dots, place A to place B, place A to place B, and intentionally make it interesting. I don’t want things to be boring. That’s the shape I’m aiming for, not a really square shape. You want to exaggerate it a little to get a more 3D-ish shape. Unless you’re aiming for a strict style, you don’t want it to have exactly the same angles everywhere. Instead, curve it a little, which gives you the 3D feeling. If something doesn’t look good, erase it; you can always modify it.

Then fill the colour with G. While you fill, you need to find the light source. Say there’s a sun at the top:

  1. Keep the outline black.
  2. Add a background layer underneath in a dark, contrasting colour so you can actually see the contrast.
  3. Go back to the shape’s layer. The top face should be the brightest colour, so fill it first.
  4. One side face is the second brightest. Pick the top colour with the colour dropper, bring it down a tiny bit, and fill with G.
  5. The other side is behind the sun, so it’s the darkest. Bring the colour down again and fill.
A pixel-art box shape with a black outline on a dark red background: a light grey top face, a mid-grey left face and a dark grey right face, wider at the base than at the top. Small yellow pixel sparkles sit in the top-left corner.
Figure 24.2. The chest drawn with the line tool, with the outline kept black and three values filled with the bucket tool: the lightest on top, a middle grey on one side face, and the darkest on the side behind the sun. The shape is deliberately wider at the bottom and slightly curved, not a strict cube.

That shading gives you a really strong taste of a 3D shape. Based on these three faces facing you, you can of course rotate the angle and extrude a little to get a different taste. But use a different colour for each face, bright or dark depending on the light source, and choose the colours that give you a more 3D-ish feeling.

Try it. Draw your own chest-like shape with the line tool, not the rectangle tool. Exaggerate it so it isn’t a strict cube, put a light source above it, and fill the three faces with three values of one colour.

Don’t overshade

One word of caution, because I came from painting to digital art: I tend to make this mistake, and I don’t want you to make it. Don’t overshade things. I tend to overshade and overcomplicate things, and it turns out in pixel art we don’t need that.

If you’re experimenting, add a new layer above (Shift and N) so you can always hide it and keep it separate.

In anime there’s a typical style called cel shading. It’s not a gradual change. It’s not adding blocks of colour and then using the smudge tool, the way you’d use your thumb in real life to smudge colours so they blend naturally. You can smudge in digital art media too, and get a really smooth, oily painting style. It renders pretty well and it’s a really satisfying experience. I love blending, personally. If I get the opportunity, it’s blending time, because I know the result after blending will be amazing. So when I first encountered digital art, I over-blended things.

Here’s what I mean. Right now the chest has three colours: the brightest, the midtone and the darker. But I tend to make the dark face even darker, add a bit of darker colour there, add a midtone here. I even use the blur tool (R) to blur things, then colour-drop a colour and add some midtone, because the further down, the less shine it gets. Add another midtone in between. Oh my gosh, so satisfying. I feel like an artist.

But this gets really dirty pixels. Look: it’s already showing a dirty trail. Compare this layer with the clean one and you can feel the ruined style. Use the small preview window to see what’s going on, and zoom (Command and plus or minus). The overshaded, blurry, smudged version feels dirty. The clean one feels good. It’s not dirty; it’s concise. I’m not saying it’s perfect, it doesn’t have any detail, but it’s concise.

The same pixel box on a pale lavender background, its two side faces now covered in soft, blotchy grey gradients that blur the pixel edges.
Figure 24.3. The same chest after overshading on a new layer: blurred and smudged gradients across both side faces. Compare it with the clean three-value version above. The pixels are no longer clear blocks of colour, which is the “dirty” look.

You can always modify a clean version pixel by pixel. To change layers quickly, press V and click on the drawing; with auto-select layer on, it jumps to the right layer. Then hold Alt to pick a colour, press B for the brush, and add a tiny bit here and there. Alt-pick, let go, place it. Alt-pick, remove it here, fill it there. That way you can always get the pixel-perfect feeling you want, and it’s more natural.

But the smudged one seems dirty. It’s like someone making a sword from Minecraft in real life, and it gets dirty. It doesn’t look 100% pixel art, but it also inherits some of the dirtiness of a realistic feeling. It’s a mixed thing. Unless you’re aiming for that style, I don’t recommend it, because this is the thing I often do myself. Keep it pure. If you have to add something, make it more decisive.

Make it simple

So if you do have to add something, make a more decisive movement. Add a new layer (Shift and N). You can borrow a little from cel shading. I use a straight line here, just to keep it simple; there’s no rule that you can’t use a curved line. I bring the colour down a tiny bit, press B, and draw one decisive line, then close off the area and fill it with G. Boom: a tiny area, filled. That’s really precise.

You don’t need to add a lot. Pile on more and more and it gets completely messed up. Make it as simple as possible. You don’t need much detail in pixel art. Borrow a little from cel shading: a confirmed movement, one or two lines. Add one thing, then fill it like a bucket, rather than blending and shading and painting over it.

Just use it as little as possible, but with a little reflection of the light source. As simple as that.

Try it. On a new layer over your shaded chest, add a single decisive band of slightly different value on one face: one straight line with the brush, then fill the area with G. Stop there.

Make it interesting, part 1: midtones and broken outlines

Now a little about the midtone. The chest isn’t a perfect example, but we’ve already used the technique briefly.

The general rule of thumb is that the shading changes because of the angle: compare this face’s angle and that face’s angle relative to the light source. That’s my secret recipe. If the angle changes, the shading should change, or at least there’s a possibility to change the shading. Here the chest has three different angles, so there are at least three shadings you can use: the lightest, the midtone and the darkest.

Sometimes you can subdivide that further. It’s like cel shading, but more fine-tuned, with a lot of intermediate areas. I learned this while learning manga and a Japanese style of drawing that’s between 2D and 3D: like illustration, not too flat, but not as 3D as modelling. Instead of just cel shading, they add a lot of midtones and even smudge a little.

The problem gets complex in pixel art, because you don’t have a lot of pixels to smudge and make a gentle transition from really dark to really light. You don’t have that leisure. So in my opinion the midtone should be used with discretion, with caution. Don’t use it unless it’s absolutely necessary. On this chest I’d rather not, even though it may seem a little flat. To be honest, there’s no absolute change of angle. I deliberately made it a weird shape with a bigger bottom than top, like a pyramid with its head cut off, so the angles are a bit wonky, and it becomes really hard to place the shading.

But there’s another place you can add a little, without worrying about drastic changes, and it’s used a lot. Here’s a quick character I drew at Starbucks. I used basic shapes to get the character done quickly. I’ll focus on what I did after the basic character was done: I added shading with the midtone, a little shadowy area here and a highlight there.

Look at the hand. When I blocked the character in quickly I used a hard black line. But when I add detail, that line is erasable. I treat the black outline as a guide for later refinement. If you’re aiming for a style that needs everything enclosed in a black outline, that’s okay. For me it’s a guideline. If everything is enclosed in black lines, I think it gets pretty dull.

So I replace some of the outline and add the midtone. The hand should have a black line, but I take the hand colour as the midtone, then make it lighter, then darker, because the light presumably comes from above. Now you can see the lighter area in the middle and the darker area below. You can break the outline too: make the bottom edge a little darker than the hand, and what’s above a little lighter, and you already get some 3D-ish feeling.

Close-up of a pixel-art character with spiky blue hair, a peach face with two black eyes, a brown top and outstretched arms. The hands have no black outline and are shaded light on top and brown underneath.
Figure 24.4. A self-portrait character sprite. Look at the arms: there is no black outline around the hands. Each hand is the skin colour with a lighter band on top and a brown, darker band below, because the light comes from above.

The same goes for any part, like the head. Why get rid of some of the outline and not all of it? Hear me out. Sometimes we need the outline to give a hint: this is the main character, or this object is interactable, or this is a fixed object in front of you. It gives stress, like underlining a word to say, “Hey, pay attention to that.” So don’t erase it completely. But here’s a trick with pixel art: when you zoom out, everything is really small, so you can get away with a darker colour instead of black. Zoom out and it reads like a shadowy line.

On the face, I treated the original colour as the midtone and added something darker and something brighter. Sometimes the highlight alone is enough; sometimes the shadow alone is enough. (This is me, by the way, pretty serious in the Starbucks.) Look at the hair: some shadow, some highlight, and I got rid of the really restrictive outline to make it more organic. I intentionally broke some of the lines so it’s more natural, more flowy. Without an outline it blends into the background more easily, which is more organic, and if you add animation it’ll look more natural.

You don’t have to follow everything I share. I’m just sharing my journey, my personal taste, experience and preference. Look closely and you’ll see stressed points and not-so-stressed points. The hand is skin, so it’s more organic, with no restrictive outline; I want it flowy. The hair flows a little. The trunk and the shoes are a little hard and man-made, so I left their outlines closed.

Try it. Here’s an assignment. Go back to the chest. Without changing its big areas of light, midtone and shadow, make it more organic, reflecting the light source and the shadowy areas. Apply the rule: if you want to see a change in shading, think about the different angles relative to the light source. Honestly, I’ve already shown you the answer with the character. It’s not a perfect solution for everything, just a style, a little tip, a trick I use. Have a go.

Make it interesting, part 2: transition tones on the edges

Did you find where to add the transition tones? I don’t mean a midtone; we already have a midtone. These are transitions. Where do they go? Really, really simple: at the edges.

We have a surface here and a surface there, and the edge between them can be represented by another face, like a subdivision. In nature there are no sharp turns, so the edge has some faces, even tiny rugged ones. That’s what you can use to make this more interesting: change the line. Instead of enclosing the thing in a black outline, make gradual changes according to light and shadow.

  1. Add a new layer (Shift and N). Think about the light source: say the sun is at the top, so the top surface takes the direct hit.
  2. Alt-click the top face to pick its colour. That’s the lightest area. At the edges you can normally use an even lighter colour, like the tiny edge of a shiny stone catching the light. Drag the colour up a little.
  3. With that colour, replace the outline along the top edges, just like the highlight at the top of the hair. Zoom out: whoa, that looks fantastic. I don’t need the top edge all the way round; I take it just to the centre.
  4. The next edge along can be a midtone: not as bright as the lightest edge, but a little brighter than the face. Find an in-between colour for it and make a cutting point where one colour ends and the other begins. Now you have two bright lines, one the lightest and one a little darker, and that shows the light coming from the top.
  5. For the lower edges, Alt-click the darker area, bring it up a tiny bit, and work along the edge, dot, dot, dot, dot.

Zoom out and compare. The old version, with its really boring outline, is really flat, really icon-ish. This is a more natural feeling. Remember you’ll be squinting at this: in your game it’ll be really far away or really small.

If you’re crazy enough, you can change the side edges as well. If the light comes from this way, reuse a colour you already have: Alt-click the darker face colour and use it on that edge as a secondary line. I don’t want an overcomplicated palette. I’ve already added one, two, three colours, and that’s already a lot, especially for lines. It’s approximately the same surface, so I reuse it. Zoom out: more authentic, more 3D-ish, just by changing the lines so they’re not boring. So this line is the same colour as that face. I’m reusing the palette instead of overcomplicating it with lots of colours, like a painting.

This is my stopping point. An artist’s work is never completed. You can always refine and make it more complex. But remember, it’s pixel art, so you have to stop. With a painting you can go on and on, but this is pixel art; you want it pixely. I’ve already introduced a lot of tiny details, so I’d stop here.

You could go further. I could make the dark bottom line a little less dark by choosing a new in-between colour and smoothing it out. But then I’d be introducing another colour, and that’s too much. Then you’d say, “Hey, this line could change too.” And what about the bottom? Then there’s reflected light, and the true shadow, and the cast shadow, and it goes on and on. It’s never finished.

Zoomed-in pixel box on a lavender background. The top face is very light grey, rimmed with near-white pixels instead of a black line; the side faces are mid and dark grey with lighter or darker edge pixels; only the bottom edge keeps a black stepped outline.
Figure 24.5. The finished chest. The black outline around the top has been replaced by two light edge colours, and the outer side edges reuse the colours of the faces. Only the bottom edge stays black. Compare it with the flat, outlined chest earlier in the chapter.

So that’s as far as I’d go for this simple shape. You can refine it, but my suggestion is don’t overdo it. I’m not blurring every black line. Find the sweet spot, think “that’s enough”, and stop. Using the so-called midtone technique, make the edges not so boring: add something in between, and look at the light source to make it better.

Try it. Do the edge exercise on your own chest: on a new layer, replace the top outline with a lighter edge colour, add a second, in-between edge colour, and reuse existing face colours for the other edges. Then stop.

Make it precise: counting pixels

Remember I said pixel art is a kind of precise art. Because the canvas is really small, the pixels restrict free-flowing freehand movement. Straight lines are relatively easy. Organic design is a completely different story.

Save your work (always save), and make a new 32 × 32 file. Say you want to draw a circle. Use the ellipse tool with the darkest colour. Holding Shift makes a perfect circle; without Shift you can change it however you want. One thing: don’t let go of Shift first. Let go of the pen first, then Shift. Then pick a base colour from the colour picker, not too dark, a little bright, and fill it with G. That’s our base colour.

This is just a shape, a circle, not a 3D sphere, so it needs a highlight and a shadow. What we did before was pick an even darker colour, freehand the shadow edge with the brush, close it and fill. There’s nothing wrong with that. But it’s a painterly method, not precise art. When you freehand and look back, you’ll see things you don’t like, places that aren’t pixel-perfect, and you have to fix all these tiny bits by hand.

So here’s another way, a precise-art skill: you count the pixels. I’ll use the base colour as the midtone and make a slightly lighter colour, moving it up a tiny bit. Look at the edge of the shadow: one and two here, one and two there, then a single pixel three. That’s the pattern. I want a curve that’s not exactly a circle: a circle rotated a little, so an ellipse.

You might use the ellipse tool, but then the axis is straight, and I want it rotated. You might think, “Easy, I’ll just rotate it.” Select the ellipse on its own layer and use Transform (Command T, or Control T on Windows). But it wiggles left and right, and when you rotate, it’s not pixel-perfect. Say I want a precise rotation of 45 degrees. It’s not precise. You can choose a different rotation algorithm, RotSprite or Fast Rotation, to keep as many of the original pixels as possible, but with a curve the algorithm just can’t always work. You get tons of stray pixels. You’d have to deselect (Command D), close the shape by hand with the brush, fill it, and that part is still really dirty. It’s not as smooth as you expected. The tool is brilliant, but it won’t 100% achieve your goal. In Photoshop you can rotate anything and it’s smooth. Pixel art is not like that.

So let’s try some human ingenuity instead.

  1. Start with two dots, one on each side, at exactly matching positions.
  2. Instead of freehanding, count and remember each move. Bring the line in this way, then down, then this way, almost parallel with the edge of the shadow.
  3. Duplicate every move on the other side. If this side goes in a little, that side goes in a little. If this side goes down, that side goes down.
  4. Try a move; if it isn’t a good curve, undo and try the other way. Keep going down and curving a little, down and curving, for a more curvy curve.
  5. Connect the two sides.

The crucial point is to duplicate each movement precisely. You can go inside, then outside, to make a gentle wave. It’s not random: if one side goes in, the other side should go in too, then both come out. There are no rules about exactly which pixel; that’s up to you. But it has to make sense.

This curve has a definitely different angle from the freehand one. That’s the difference between total freehand drawing and planned, pixel-perfect drawing. With freehand it’s really tough to get that uniformity. With precise pixels you start at a point, add a pixel here and the same movement there.

When I’m happy with it, I fill the area with the lighter colour. If the bucket fill doesn’t work, check that the shape is closed and that you’re on the right layer. I filled the wrong layer twice here, so hide the other layers and check. I thought the dark area was too dark, so I refilled it with a lighter colour.

Normally I’d keep just highlight, midtone and shadow. But here’s a nice trick for adding a highlight efficiently. The shadow edge was wiggly because we couldn’t use a circle there. A highlight, though, can be a circle: it’s like a light shining from far away and hitting one spot on the ball. Pick a lighter colour (you can even play with something like green). Press B and make the brush bigger: one, then four, then five. Whoa, that’s like a highlight. Six is already pretty big; much bigger looks weird, or maybe it can pass. It depends on your taste. If you think it’s good, just apply it. Boom: you don’t need to draw the highlight by hand. The brush is already precise: line, line, line, then the 45-degree steps.

You can also be more conservative: Alt-click and make it brighter by hand. If the light source tilts, move the highlight. You can even imagine multiple light sources and stamp smaller, brighter spots inside. Sometimes it works and sometimes you have to adjust it by hand.

A pixel-art sphere on a grey checker canvas: a bright cyan round highlight upper left, a teal midtone around it, a darker teal band and a near-black shadow on the lower right.
Figure 24.6. The finished sphere. Darkest shadow on the lower right, the base colour as midtone, a lighter area counted out pixel by pixel, and a round highlight stamped with a bigger brush. A few values are enough for the circle to read as a ball.

Right now that’s enough detail: a really dark area, a midtone, a light area and a highlight. You could keep going with sizes four, two and one in even brighter colours, but that defeats the reason we use pixel art. That’s too much rendering, and it’s a slippery slope: next you’d blur it and it becomes painterly. I tend to avoid that. I want it simple. Look: nobody would mistake this for something flat. You instantly say it’s a sphere.

Quick review: you can freehand, but it’s hard to control and needs a lot of revision. Or you can use precise art: find the axis, find the dots, make the same movement on both sides, and let them converge.

Try it. Draw a 32 × 32 sphere with the ellipse tool (holding Shift) and fill it. Count out the boundary of a lighter area, starting from two matching dots and copying every move on both sides. Then stamp a highlight with the brush at sizes four, five and six and choose the one you like.

Make it natural

I love to exercise, and drawing is a kind of exercise. You need to exercise to build muscle memory. But that’s not the point. The point is this: so far we’ve drawn a really perfect sphere and a really artificial, weird shape. If you look at the human body, or anything organic, there are no sharp edges, and nothing is a perfect sphere. Even where there’s a joint, a cutting point, the surface turns really smoothly. There’s no sharp turn; it still runs smoothly. That’s the realistic shape that artists and game developers work with. (Speaking English is not my mother tongue, so sometimes I stop mid-sentence.)

So if you want to draw something realistic, lively, you don’t want really sharp turns, but you don’t want everything too perfect either. How do you do that?

The sphere was easy. We smoothed it with curves rather than lines, plus distinct shading and an in-between colour to limit the palette. But what about a cylinder? It has a perfectly smooth shape at the top and bottom, and a side that’s a little curved, but not as curved as a sphere. How do you deal with that? That’s where the next chapter starts, and I’ll use a very interesting technique for it. It began as a kind of computer graphics algorithm and later became a style. I want you, the artist, to use it, because it became a style. It’s so cool.

Key takeaways

  • In pixel art a line is not a line. It’s pixels stepping like stairs, and its angle depends only on the start point, the end point and the ratio of steps up to steps across.
  • Use the automatic line, then fix it by hand. You can modify whatever you want, as long as you don’t break the line.
  • Curves represent life; sharp edges and regular shapes are for man-made things.
  • Give a shape a light source and a different value for each face, but don’t overshade. Smudging and blurring make dirty pixels. Keep it pure, and when you add something, make it decisive.
  • Shading changes because the angle to the light source changes. Use midtones with caution, break outlines where things are organic, and put transition tones on the edges instead of a boring black line.
  • It’s pixel art, so you have to stop. For precise curves, count the pixels and copy each movement on both sides instead of freehanding.
Portrait of LIPAI WANG

LIPAI WANG

A self-taught artist and teacher, known to his video students as William Jiamin. A former programmer, he teaches drawing, painting, pixel art and 3D the way he learned them: one solvable piece at a time.