Reference · Facts, line drawings and positions
PortraitEmbedtype
A scene of the portrait builder to put in a page: the scene as the builder writes it in its address, how wide the picture is, and the look to draw it in if not the scene's own.
Import it
import type { PortraitEmbed } from "@johnmorrisdotca/wakusei-planets";
Definition
interface PortraitEmbed {
scene: string;
width?: number;
}
Members
| Name | Type | Description |
|---|---|---|
scene | string | The scene as text ( |
width (optional) | number | undefined | Pixels across; default 720. |
Examples
import { portraitCode, type PortraitEmbed } from "@johnmorrisdotca/wakusei-planets";
const options: PortraitEmbed = { scene: "look:painted~jupiter_0_0_0.3_0~io_0_0_0.1_0", width: 640 };
console.log(portraitCode(options, "html").includes("wakusei-portrait"));trueWhat it prints (run when this page was built)