Reference · Bodies as objects for your own three.js scene
PainterOptionstype
Where the pictures are, if not on jsDelivr: a folder address that ends in a slash. farBase holds the widest pictures (2048), which the npm package leaves out.
Import it
import type { PainterOptions } from "@johnmorrisdotca/wakusei-planets/painter";
Definition
interface PainterOptions {
textureBase?: string;
farBase?: string;
}
Members
| Name | Type | Description |
|---|---|---|
textureBase (optional) | string | undefined | |
farBase (optional) | string | undefined |
Examples
import { createPainter, type PainterOptions } from "@johnmorrisdotca/wakusei-planets/painter";
const options: PainterOptions = { textureBase: "/textures/", farBase: "/textures/" };
console.log(createPainter(options).looks);