2016-03-25 16:47:20 -07:00
|
|
|
# Reports
|
|
|
|
|
|
|
|
Reports the x or y position, the current direction of a sprite, or the brightness of a sprite on the LED screen
|
|
|
|
|
|
|
|
Reports the x position of a sprite on the LED screen
|
|
|
|
|
2016-08-09 16:52:24 +01:00
|
|
|
```sig
|
2016-03-25 16:47:20 -07:00
|
|
|
export function x(_this: micro_bitSprites.LedSprite) : number
|
|
|
|
```
|
|
|
|
|
|
|
|
Reports the y position of a sprite on the LED screen
|
|
|
|
|
2016-08-09 16:52:24 +01:00
|
|
|
```sig
|
2016-03-25 16:47:20 -07:00
|
|
|
export function y(_this: micro_bitSprites.LedSprite) : number
|
|
|
|
```
|
|
|
|
|
|
|
|
Reports the brightness of a sprite on the LED screen
|
|
|
|
|
2016-08-09 16:52:24 +01:00
|
|
|
```sig
|
2016-03-25 16:47:20 -07:00
|
|
|
export function brightness(_this: micro_bitSprites.LedSprite) : number
|
|
|
|
```
|
|
|
|
|
|
|
|
Reports the current direction of a sprite on the LED screen
|
|
|
|
|
2016-08-09 16:52:24 +01:00
|
|
|
```sig
|
2016-03-25 16:47:20 -07:00
|
|
|
export function direction(_this: micro_bitSprites.LedSprite) : number
|
|
|
|
```
|