Reference · Facts, line drawings and positions
decodeScenefunction
The scene from its text. Anything it does not understand is left at its default and a body it does not know is dropped, so any text gives a scene.
Import it
import { decodeScene } from "@johnmorrisdotca/wakusei-planets";
Definition
function decodeScene(text: string): Portrait
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Text from |
Returns
Portrait
The scene.
Examples
import { decodeScene } from "@johnmorrisdotca/wakusei-planets";
console.log(decodeScene("look:painted~jupiter_0_0_0.3_0").items[0]?.body);jupiterWhat it prints (run when this page was built)