2016-03-26 00:47:20 +01:00
|
|
|
# beautiful image blocks challenges
|
|
|
|
|
|
|
|
Coding challenges for the beautiful image tutorial.
|
|
|
|
|
|
|
|
## Before we get started
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Complete the [beautiful image](/lessons/beautiful-image/activity) activity and your code will look like this:
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showLeds(`
|
|
|
|
# # # # #
|
|
|
|
# # . # #
|
|
|
|
# . # . #
|
|
|
|
# # . # #
|
|
|
|
# # # # #
|
|
|
|
`)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Challenge 1
|
|
|
|
|
2016-11-02 01:44:37 +01:00
|
|
|
Now show an new image that will display on the @boardname@.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showLeds(`
|
|
|
|
# # # # #
|
|
|
|
# # . # #
|
|
|
|
# . # . #
|
|
|
|
# # . # #
|
|
|
|
# # # # #
|
|
|
|
`)
|
|
|
|
basic.showLeds(`
|
|
|
|
# . # . #
|
|
|
|
. # # # .
|
|
|
|
. . # . .
|
|
|
|
. # # # .
|
|
|
|
# . # . #
|
|
|
|
`)
|
|
|
|
```
|
|
|
|
|
2016-05-06 18:32:29 +02:00
|
|
|
* Does your code work as expected?
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Challenge 2
|
|
|
|
|
2016-05-06 18:32:29 +02:00
|
|
|
Nice job! Why don't we create a third image that will show after the other two?
|
2016-03-26 00:47:20 +01:00
|
|
|
|