MIT SCRATCH COURSE

paint editor

Paint editor

Use the Paint editor to create your own backdrops and costumes, and to edit existing backdrops and costumes.

An annotated screenshot of the Costumes tab.

Create a new backdrop in the Paint editor

Go to the Choose a Backdrop menu and click on Paint:

The 'Paint' option in the 'Choose a Backdrop' menu.

You will be taken to the Paint editor, where the new backdrop will be highlighted in the list. If you have other backdrops in your project, you will also see them in the list.

The new backdrop open in the Paint editor and highlighted in the list.

To set the main colour of the backdrop, click on the Rectangle tool, then use the Fill colour chooser to select a colour, then drag the shape over the full backdrop canvas:

The Fill colour chooser menu with 'Color', 'Saturation', and 'Brightness' sliders.
A light-blue rectangle drawn larger than the canvas to create an entirely light-blue backdrop.

If you want to add more details to your backdrop, you can use the Rectangle tool, Circle tool, or Brush tool, or a combination of all three!

The backdrop canvas with the light-blue rectangle, and in front of it, a smaller green circle representing a hill.

When you have finished, make sure that you give your new backdrop a name that makes sense:

The backdrop name box with the word 'Hill' typed in.

Your new backdrop will be shown on the Stage and will be available to use in Looks blocks.

The new Hill backdrop and the Scratch Cat sprite on the Stage.

Create backdrops and sprites using shapes

You can create backdrops and costumes for sprites in the Paint editor, using just shapes.

Go to the Choose a Sprite or Choose a Backdrop menu and choose the Paint option:

The 'Paint' option in the 'Choose a Sprite' menu.

The 'Paint' option in the 'Choose a Backdrop' menu.

Select which tool(s) to use to make the shape(s) that you want:

  • Circle: Click on the Circle tool to draw a circle. Press and hold the Shift key on your keyboard to draw a perfect circle.

The Circle tool.

  • Rectangle: Click on the Rectangle tool to draw a rectangle. Press and hold the Shift key to draw a square.

The Rectangle tool.

  • Triangle: Use the Rectangle tool to draw a rectangle or a square. Click on the Reshape tool and select the corner that you want to remove. Click on the Delete tool to turn your shape into a triangle.

A square shape with one corner selected.

The Reshape tool.

The Delete tool.

A triangle shape.

You can use the Fill tool to change the colour of a shape:

The Fill tool.

The Fill colour chooser and the new colour of the shape.

You may need to use the Forward and Backward tools to move your shapes forward or backward so that they are positioned correctly within your image:

The Forward and Backward tools.

You can select all the shapes and Group them together so that you can adjust them or move them as one shape:

The Group tool.

Multiple shapes selected.

Here is an example of a sprite created with the Circle and Rectangle tools:

Pig: See inside

Remember to name the costumes and backdrops that you create in the Paint editor.

Use the Text tool

Click on the Fill colour chooser and select the colour that you want for your text:

The Fill colour chooser menu showing sliders to control Color, Saturation, and Brightness.

Select the Text tool:

The Text tool.

Click on the Paint editor and start typing.

Click on the Font drop-down menu and select the font that you want:

The Font drop-down menu showing the fonts available to use within Scratch.

If you want to resize your text, click on the Select (Arrow) tool and select the text, then drag the corner handles to resize the text:

The Select (Arrow) tool and resize handles.

If you want to change the Fill colour of your text, use the Fill colour chooser to select a colour, then select the Fill (Bucket) tool and hold your mouse cursor over the text (or if you are using a tablet, tap the text). The text will automatically change colour. Click on the text to make the change:

The Fill (Bucket) tool.

If you want each word in a message to be a different colour, size, and font, follow the process above for each word in your message.

Position your text and/or group of words with the crosshair in the centre of the Paint editor:

The crosshair.

To layer your words, use the Forward and Backward tools:

The Forward and Backward tools.

Add a costume to a sprite

Click on the Costumes tab and then on Choose a Costume to add any costume to the sprite from the Costume Library:

The 'Choose a Costume' icon highlighted.

You will need to position and resize the added costume in the Paint editor, to match the sprite’s other costumes.

Tip: If you position a sprite on the Stage and then change its costume, the sprite might appear to ‘jump’ or change size. You will need to position and resize the costumes in the Paint editor so that they all appear in the right position on the Stage.

Centre your costumes

Sprites rotate around their centre. You can see if your sprite is centred by looking at the small grey crosshair shown in the Paint editor:

The crosshair.

If the crosshair is not at the centre of your costume, you can use the Select tool to highlight the full costume. A cross will then show in the centre of your highlighted costume:

The cross in the centre of the costume is not aligned with the crosshair.

You can drag the highlighted costume so that the cross in the costume aligns with the crosshair:

The cross in the costume aligned with the crosshair.

Occasionally, you might want to choose a point to rotate around that is not the centre of the costume. In that case, you can align your chosen costume rotation point with the crosshair in the Paint editor:

A rotation point at the bottom of the costume is aligned with the crosshair.

Copy parts between sprite costumes

Click on the Costumes tab for your sprite.

Tip: Duplicate the costume that you want to edit — so that you can still use the original costume if you need to. To do this, right-click (or on a tablet, tap and hold) on the costume and choose duplicate. You will now have a copy of the costume:

The 'duplicate' option highlighted in the menu.

The duplicated costume is located just below the original costume in the Costumes tab.

To remove any part of the costume that you do not need any more, click on the part to select it, then click on Delete:

The nano-a2 costume with one arm selected.

The duplicated costume with parts removed should look something like this:

The nano-a2 costume with the arm deleted.

Tip: If you make a mistake in the Paint editor, you can click on Undo: The 'Undo' icon.

Go to the costume with the part that you want to add and click on the part that you need, then click on Copy:

The nano-c costume with one arm selected.

If you want to add a part from a costume that is not already shown in the Costumes tab, you need to add the costume to your sprite first. Click on the Choose a Costume icon, then find the costume that you want and click on it to add it to your sprite:

The 'Choose a Costume' icon highlighted.

When you have copied the part that you need, go back to the duplicated costume and click on Paste. The duplicated costume should now look something like this:

The nano-a2 costume with the arm from the nano-c costume.

Now, switch to the Code tab. You will be able to use the new costume in your code blocks:

 

 

 

Duplicate and edit a costume to use in an animation

Some Scratch sprites just have one costume, or have multiple costumes that don’t work as an animation. If you choose one costume, then duplicate it (make a copy of it) and make a small change, it can create an animation effect.

Robot animation: See inside

Switch to the Costumes tab for your sprite.

Choose the costume that you want to use, and delete the other costumes, because you will not need them for your animation. For example, the Robot sprite comes with costumes for three different robots, so you should choose one of the costumes and delete the other costumes.

Right-click (or on a tablet, tap and hold) on the costume, and choose duplicate.

Make small changes to the copy of the costume. For example, you can move, rotate, or change all or part of the costume. You can also add movement lines.

If your costume uses vector graphics, then you can select parts of a costume and change each part separately.

Duplicating a robot costume, then making changes to parts of the copy of the costume.

You can duplicate the costume again and make more changes to add more frames to your animation.

You can now use your costumes in a simple sprite animation.

Use the Fill tool to change the colours in a costume

You can change the colour of your sprite. First, select your sprite in the Sprite list below the Stage and then click on the Costumes tab.

Use the Select (Arrow) tool to highlight the part of the costume you want to change colour.

The Select (Arrow) tool.

Selecting a shape.

Go to the Fill colour chooser and select a colour. It will automatically fill the shape that you have selected.

The Fill colour chooser in the Paint editor, and the shape filled with the colour chosen.

Repeat the steps above for any part of the costume that you have missed, or for any other part of the costume you want to change colour.

Selecting a different part of the costume.

Different parts of the costume have been changed to different colours.

The changed sprite on the Stage.

Use the tips below to help you to create your own designs for your sprites in the Paint editor.

Create scenery as sprites

Hill as a sprite: See inside

A hill sprite.

To make your own Hill sprite, shown in the example above, you can use the Circle and Rectangle tools in the Paint editor:

  • Go to Choose a Sprite and select Paint to create a new sprite costume.

Selecting a Fill colour of green, deselecting the Outline, and drawing a green oval with the Circle tool, in the Paint editor.

  • Choose a Fill colour. Click on Outline and deselect it (to do this, click on the box with the diagonal line in the bottom left-hand corner of the menu). Now, use the Circle tool to draw an oval. Then, select the Rectangle tool and draw a rectangle underneath the oval.

  • If you use varying colours for the shapes, you may need to use the Front and Back tools in the Paint editor to move your shapes forward or backward so that they are positioned correctly within your background.

  • You can select all the shapes and Group them together so that you can adjust them or move them as one shape.

The Group tool highlighted in the Paint editor.

Now, make other sprites for your scenery, if this fits in with your project idea.

Remember to name your sprite(s).

Use the Line tool to create a triangle

You can create polygons, such as a triangle, and use these shapes to create roofs or mountains.

Go to Choose a Sprite and select Paint to create a new sprite costume. In this example, you will make houses.

House: See inside

Drawing a rectangle with the Rectangle tool, and a triangle with the Line tool, in the Paint editor.

If you follow the instructions below, you can use the Line tool to create any shape:

  • Choose a Fill colour. To choose the colour black, decrease the Brightness to zero (0).

Changing the Fill colour to black.

  • Select No outline.

The 'No outline' symbol highlighted.

  • Use the Rectangle tool to draw a rectangle.
  • Use the Line tool to draw a triangle. Make sure that you complete the triangle, otherwise it will not fill with colour.
  • Move the two shapes together.
  • Select the Fill (Bucket) tool and fill the triangle with colour.
  • Use the Rectangle tool to draw another rectangle for the chimney.
  • You can use the Front and Back tools in the Paint editor to move your shapes forward or backward so that they are positioned correctly. In this example, you will not need to do this, because the shapes are black to make a silhouette.
  • Select all the shapes and Group them together so that you can adjust them or move them as one shape.

To create duplicate shapes of your house (for example, to make a skyline), follow the tips under Duplicate shapes to create a scenery costume below.

Duplicate shapes to create a scenery costume

You may want to duplicate shapes within a costume so that your scenery appears busier or more crowded.

Multiple clouds: See inside

Multiple clouds on the Stage.

The effect of multiplying shapes is used by professional animators to create the impression of weather patterns, such as rain or clouds; a cluster of objects, such as buildings or a wood; or a crowd of people in a scene.

Using the Select, Copy, and Paste tools to make a costume with multiple cloud shapes.

To multiply any type of shape:

  • Go to Choose a Sprite and select, in this example, the Cloud sprite
  • In the Costumes tab, use the Select tool to highlight the whole of the shape
  • Use the Copy and Paste tools to create duplicates of the shape
  • Use the Select tool to move the shape within the Paint editor
  • You can vary the size of the shapes to help to create a greater sense of 3D effects, for example
  • You can select all the shapes and Group them together, so that you can adjust them or move them as one shape

Use Saturation and Brightness to create depth

In the real world, objects that are further away appear lighter in colour. To achieve more realistic 3D scenery, you can decrease the colour Saturation and/or Brightness of each sprite so that they appear further and further away.

'Saturation' and 'Brightness' highlighted in the Fill colour chooser.

Create a sprite with gaps that you can see through

You can create a sprite that has gaps that you can see through. If it is positioned as the front layer and is the size of the Stage, it can appear like a view through the bars of a cage or a window.

Caged lion: See inside

A cage sprite costume.

To create a type of masking sprite:

  • Go to Choose a Sprite and select Paint
  • Choose a Fill colour with no Outline and draw a vertical rectangle
  • Use the Copy and Paste tools to repeat this shape
  • Use the Select tool to move the shapes around
  • As you place your shapes, make sure that they are touching the edge of the Stage to fit in with your project idea

The Copy and Paste tools highlighted in the Paint editor.

Tip: If you find it hard to manage the sprites on your Stage, such as having a large sprite that keeps covering a much smaller one, you can click on Hide so that you don’t see a sprite or sprites. Then, when you have finished, click on Show again.