Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

1. Présentation de Peindre


Hi, this is Sarah! Welcome to Day 4 of Scratch Art. Today, you will make a colorful, fun interactive art piece that responds to the mouse pointer, much like a paint application on a computer. You will also learn about an important computer science concept: variables.

Variables are elements that store a value or keep track of things. For example, variables can keep track of time or hold a game’s high score.

In Scratch, variables have an oval shape, for example, “x position” or “timer.”

Scratch also lets you make your own variables.

In math classes, you often see variables labeled as letters of the alphabet like x, y, or m.

In computer science, variables are named for what they represent, like “High Score,” “Lives Remaining,” or “Race Car Speed” Although variables usually store number values, they can also store attributes or text. If you ever designed or named a character in a game, then you used a variable. Every time another character refers to you, they use the name, or variable, that you input.

In this example, each character attribute is a variable. Each variable has a name, like “gender” and stores a value, like “female.”

In today’s project, you will use a variable to adjust how quickly the sprite moves while it changes colors and stamps. Now it’s your turn!

Open the starter project, click remix, then sign in.

Suivant arrow_forward
  1. Remixe le projet de démarrage.
  2. Connecte-toi à l'aide des informations sur ton passeport.