Reference · How a body is drawn with three.js
lookOffunction
The look registered for a body, or undefined when its entry point has not been imported.
Import it
import { lookOf } from "@johnmorrisdotca/wakusei-planets/look";
Definition
function lookOf(id: BodyId): BodyLook | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | BodyId | The body's name. |
Returns
BodyLook | undefined
The registered look, or undefined for a body with none.
Examples
import { lookOf } from "@johnmorrisdotca/wakusei-planets/look";
console.log(lookOf("jupiter") === undefined);trueWhat it prints (run when this page was built)