STEAM NightDesign your favorite animal with code

Team up with your family: one of you designs a pixel art animal, and the other writes the code that teaches PixelBot to paint it.

About 9 Dots. 9 Dots is a nonprofit that partners with schools to bring computer science to every student, starting in kindergarten.

PixelBot follows the code on the right to paint the picture on the left.

Design and code your favorite animal

1DesignerDesigns the animal on the grid.
2CoderWrites the code to paint it.
  1. 1Design it
  2. 2Code it
  3. 3Bonus: loop it
Your animal is made of small squares, and your code is made of small steps. Breaking a big job into small pieces is called decomposition. It’s how coders solve big problems.

Need an idea? Try one of these.

Elephant

Rhino

Penguin

Frog

Lion

Your own idea

Ready? Pick your grade and start coding

Each button opens PixelBots in a new tab, so you can come back to this page any time.

Finished early? Make your code even shorter, add a background color behind your animal, or trade with a partner and guess each other’s animal from the code alone.

How to design your animal in PixelBots

  1. 1
    Open the drawing grid. Click the Edit Goal button.Blue Edit Goal button with a paintbrush icon
  2. 2
    Pick a color. Click the color square at the top left, then choose a color from the menu.Color menu open below the color square, showing 11 colors
  3. 3
    Paint. With the paintbrush selected, click a square on the grid to paint it. Pick a new color any time.Paintbrush button
  4. 4
    Fix a mistake. Click the eraser, then click a square to erase it. To paint again, click the paintbrush.Eraser buttonPaintbrush button
  5. 5
    Save it. When your animal is done, remember to click Save. Now PixelBot knows what to paint.Blue Save button

Watch it: a brown outline first, then yellow for the ears.

If PixelBot paints the wrong square, that’s a bug. Finding and fixing it is called debugging. Every coder does it, even the experts, so a bug just means you’re learning.