Update planet#draw docs
This commit is contained in:
parent
f4d9536f17
commit
80ef60d6cf
@ -157,6 +157,8 @@ planet.draw(canvas);
|
|||||||
```
|
```
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Once you've called `draw()` on a planet, you should not call it again unless you first call `stop()`.
|
||||||
|
|
||||||
**`planet.stop()`**
|
**`planet.stop()`**
|
||||||
|
|
||||||
Stop drawing the planet to the canvas. This disables the internal draw loop. You can register functions to call when the planet is stopped using the `onStop` method; if you don't plan on reusing the planet, be sure to clean up timers and references to internal properties, if necessary, so that it can be garbage collected.
|
Stop drawing the planet to the canvas. This disables the internal draw loop. You can register functions to call when the planet is stopped using the `onStop` method; if you don't plan on reusing the planet, be sure to clean up timers and references to internal properties, if necessary, so that it can be garbage collected.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user