pxt-calliope/docs/reference/js/lessons/smiley/quiz.md

55 lines
775 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# smiley quiz
2016-04-02 01:22:47 +02:00
make a smiley face blink.
2016-03-26 00:47:20 +01:00
## Name
## 1. Describe what `basic->show animation` does
<br/>
<br/>
## 2. Why is there an extra empty frame after the smiley face?
```
basic.showAnimation(`
. # . # . . . . . .
. # . # . . . . . .
. . # . . . . . . .
# . . . # . . . . .
. # # # . . . . . .
`, 400)
```
<br/>
## 3. Change the delay shown from 400 milliseconds to 1000 milliseconds.
```
basic.showAnimation(`
. # . # . . . . . .
. # . # . . . . . .
. . # . . . . . . .
# . . . # . . . . .
. # # # . . . . . .
`, 400)
```
<br/>
## 4. Now let's change the delay shown below from 400 milliseconds to 2.5 seconds.
```
basic.showAnimation(`
. # . # . . . . . .
. # . # . . . . . .
. . # . . . . . . .
# . . . # . . . . .
. # # # . . . . . .
`, 400)
```
<br/>