61 lines
1.1 KiB
Markdown
61 lines
1.1 KiB
Markdown
|
# bounce image quiz answers
|
||
|
|
||
|
scroll an image on the BBC micro:bit #LED #screen #animation #docs
|
||
|
|
||
|
This is the answer key for the [bounce image quiz](/microbit/lessons/bounce-image/quiz).
|
||
|
|
||
|
## 1. What does it mean to 'add frames' ?
|
||
|
|
||
|
Adding frames modifies the animation by including more still images in each animation.
|
||
|
|
||
|
## 2. Write the code that will display this animation.
|
||
|
|
||
|

|
||
|
|
||
|
<br/>
|
||
|
|
||
|
```
|
||
|
basic.showAnimation(`
|
||
|
# . . . .
|
||
|
# . . . .
|
||
|
# . . . .
|
||
|
# . . . .
|
||
|
# . . . .
|
||
|
`, 400)
|
||
|
```
|
||
|
|
||
|
## 3. Write the code that will display this animation with two frames.
|
||
|
|
||
|

|
||
|
|
||
|
<br/>
|
||
|
|
||
|
```
|
||
|
basic.showAnimation(`
|
||
|
# . . . . . # . . .
|
||
|
# . . . . . # . . .
|
||
|
# . . . . . # . . .
|
||
|
# . . . . . # . . .
|
||
|
# . . . . . # . . .
|
||
|
`, 400)
|
||
|
```
|
||
|
|
||
|
## 4. Write the code that will display this animation with three frames.
|
||
|
|
||
|

|
||
|
|
||
|
<br/>
|
||
|
|
||
|
```
|
||
|
basic.showAnimation(`
|
||
|
# . . . . . # . . . . . # . .
|
||
|
# . . . . . # . . . . . # . .
|
||
|
# . . . . . # . . . . . # . .
|
||
|
# . . . . . # . . . . . # . .
|
||
|
# . . . . . # . . . . . # . .
|
||
|
`, 400)
|
||
|
```
|
||
|
|
||
|
<br/>
|
||
|
|