restructuring to separate language from API
This commit is contained in:
@ -8,7 +8,7 @@ An *Image* is a matrix of pixels to show on the [LED screen](/device/screen)
|
||||
|
||||
### Block Editor: Show LEDs
|
||||
|
||||
To display an image using the [Block Editor](/blocks/editor):
|
||||
To display an image:
|
||||
|
||||
* click `Basic` , `Show LEDs`, and tap on the LEDs`
|
||||
* when you're done, return to your code
|
||||
@ -21,10 +21,6 @@ You should see code similar to this:
|
||||
|
||||
To create an image that you can later modify, see the [create image](/reference/images/create-image) function.
|
||||
|
||||
### Block editor: create and show images
|
||||
|
||||
To create images using the [Block editor](/blocks/editor):
|
||||
|
||||
1. Click the **Images** category on the left.
|
||||
|
||||
2. Drag and drop the **show image** block into your code.
|
||||
|
@ -29,7 +29,7 @@ img.showImage(0)
|
||||
|
||||
### Example: display numbers 1-5
|
||||
|
||||
The following example creates an image with 5 frames and then uses a [for loop](/reference/loops/for) to show each frame on the screen:
|
||||
The following example creates an image with 5 frames and then uses a [for loop](/blocks/loops/for) to show each frame on the screen:
|
||||
|
||||
```
|
||||
let img2 = images.createImage(`
|
||||
|
@ -38,7 +38,7 @@ let w = img.width()
|
||||
|
||||
### Example: show each frame
|
||||
|
||||
The following example uses the `width` function with a [for](/reference/loops/for) loop to show each image frame on the screen:
|
||||
The following example uses the `width` function with a [for](/blocks/loops/for) loop to show each image frame on the screen:
|
||||
|
||||
```
|
||||
let img2 = images.createImage(`
|
||||
|
Reference in New Issue
Block a user