Fix some titles, sigs in ref docs (#2128)

* Fix some title and sigs in ref docs

* better buffer source
This commit is contained in:
Galen Nickel
2019-06-05 16:28:56 -07:00
committed by GitHub
parent 14418569d1
commit 3f106307ff
16 changed files with 53 additions and 66 deletions

View File

@ -3,15 +3,14 @@
Turn the sprite as much as you say in the direction you say.
```sig
let item: game.LedSprite = null;
item.turn(Direction.Right, 45);
game.createSprite(0, 2).turn(Direction.Right, 45);
```
## Parameters
* a choice whether the sprite should turn **left** or **right**
* a [number](/types/number) that means how much the sprite should turn.
This number is in **degrees**, so a straight left or right turn is 90 degrees.
* **direction**: a choice whether the sprite should turn **left** or **right**
* **degrees**: a [number](/types/number) degrees of angle that the sprite should turn.
A straight left or right turn is 90 degrees.
## Example