diff --git a/docs/courses/csintro/booleans/unplugged.md b/docs/courses/csintro/booleans/unplugged.md index 16775927..3bf86835 100644 --- a/docs/courses/csintro/booleans/unplugged.md +++ b/docs/courses/csintro/booleans/unplugged.md @@ -1,211 +1 @@ - +TODO: Fix for microbit master \ No newline at end of file diff --git a/docs/projects/micro-coin.md b/docs/projects/micro-coin.md index 86413ebd..3bf86835 100644 --- a/docs/projects/micro-coin.md +++ b/docs/projects/micro-coin.md @@ -1,87 +1 @@ - +TODO: Fix for microbit master \ No newline at end of file diff --git a/docs/reference/images/pixel.md b/docs/reference/images/pixel.md index 1b6396a0..3bf86835 100644 --- a/docs/reference/images/pixel.md +++ b/docs/reference/images/pixel.md @@ -1,51 +1 @@ -# Pixel - -The pixel function. - -Get the state of a pixel in an [Image](/reference/images/image). - -## JavaScript - -```sig -export function pixel(_this: micro_bit.Image, x: number, y: number) : boolean -``` - -## Parameters - -* x - [Number](/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/images/image) -* y - [Number](/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/images/image) - -## x, y coordinates? - -To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). - -## Returns - -* [Boolean](/blocks/logic/boolean) - `true` for on and `false` for off - -## Example - -This example gets the state of pixel `0, 0` in the `img` variable: - -## ~hide - -```blocks -let img = images.createImage(` -. . # . . . . . . . -. # . # . . . # . . -. . # . . . . . . . -. # . # . . . # . . -. . # . . . . . . . -`) -``` - -## ~ - -```typescript-ignore -let state = img.pixel(0, 0) -``` - -## See also - -[set pixel](/reference/images/set-pixel), [show image](/reference/images/show-image), [image](/reference/images/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image) - +TODO: Fix for microbit master \ No newline at end of file diff --git a/docs/reference/images/set-pixel.md b/docs/reference/images/set-pixel.md index ac29279e..3bf86835 100644 --- a/docs/reference/images/set-pixel.md +++ b/docs/reference/images/set-pixel.md @@ -1,42 +1 @@ -# Set Pixel - -The set pixel function. #set pixel. - -Set the on/off state of pixel in an [Image](/reference/images/image). - -## JavaScript - -```sig -export function setPixel(_this: micro_bit.Image, x: number, y: number, value: boolean) -``` - -## Parameters - -* x - [Number](/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/images/image) -* x - [Number](/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/images/image) -* value -[Boolean](/blocks/logic/boolean); the on/off state of a pixel; `true` for on, `false` for off - -## x, y coordinates? - -To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). - -## Example - -The following example creates an image and stores it in the `img` variable. The `set pixel` function sets the centre pixel off, before `img` is shown using `show image`. - -```blocks -let img = images.createImage(` -. . # . . -. # . # . -. . # . . -. # . # . -. . # . . -`) -img.setPixel(2, 2, false) -img.showImage(0) -``` - -## See also - -[pixel](/reference/images/pixel), [show image](/reference/images/show-image), [image](/reference/images/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image) - +TODO: Fix for microbit master \ No newline at end of file