15 lines
304 B
Markdown
15 lines
304 B
Markdown
|
# Turn
|
||
|
|
||
|
Rotates a sprite to the right by a certain number of degrees
|
||
|
|
||
|
```
|
||
|
export function turnRight(_this: micro_bitSprites.LedSprite, degrees: number)
|
||
|
```
|
||
|
|
||
|
Rotates a sprite to the left by a certain number of degrees
|
||
|
|
||
|
```
|
||
|
export function turnLeft(_this: micro_bitSprites.LedSprite, degrees: number)
|
||
|
```
|
||
|
|