Hey and welcome to day 7 of Scratch Fashion and Design. Today you will create a programthat designs patterns. You’ll be able to test the patterns you create on things like:clothing, furniture, or even wallpaper. In doing this, you’ll learn about the computerscience concept: procedures. A “procedure” combines many instructionsinto one task, or block. The procedure can then be called to run that set of instructionswhenever needed. In Scratch, you create procedures by “making a block.”
For example, you could combine a set of instructions into a dance procedure. When this code runs,it runs the glide block, then “calls” the procedure. All of the code for the procedureruns, before moving to the next glide block.
Alternatively, you code this same example without procedures like this. This requiresa *lot* more time and effort. Not only that, but look at how much prettier the code lookswhen you use a procedure. Rather than copying a bunch of code to make the sprite dance,it’s all placed into a procedure that you can call whenever needed.
Procedures allow you to simplify common actions. You can then create code that looks good,is much easier to read, and takes less time to create.
Take a moment now to make sure you are signed in to the cs-first website using the usernameand password from your passport. If you are *not* signed in, you won’t receive a digitalbadge for completing this activity, so be sure to sign in!
Today, you will begin with a starter project that has a procedure to assist in your patterncreation. When this video is over, click on the "Pattern Maker" starter project link.
Sign in to Scratch, and click the Remix button. Then, return to this tab and watch the nextvideo where you’ll begin printing your first pattern.
Now it’s your turn!
1. Einführung zu Vorgängen
2. Das Muster drucken
3. Das Projekt für einen weiteren Druck zurücksetzen