Reference · How a body is drawn with three.js
starLookOffunction
The star registered under a name, or undefined.
Import it
import { starLookOf } from "@johnmorrisdotca/wakusei-planets/look";
Definition
function starLookOf(name: string): StarLook | undefined
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The name given to |
Returns
StarLook | undefined
The star, or undefined when none is registered by that name.
Examples
import { starLookOf } from "@johnmorrisdotca/wakusei-planets/look";
console.log(starLookOf("Vega") === undefined);trueWhat it prints (run when this page was built)