Reference · Facts, line drawings and positions
embedCreditfunction
The credits that travel with a picture of a body: the line and illustrated looks are drawn from numbers, and realistic and painted use the surface maps.
Import it
import { embedCredit } from "@johnmorrisdotca/wakusei-planets";
Definition
function embedCredit(options: EmbedOptions): string
Parameters
| Name | Type | Description |
|---|---|---|
options | EmbedOptions | The choices, so only what is used is named. |
Returns
string
A short line of credit to put near the picture.
Examples
import { embedCredit } from "@johnmorrisdotca/wakusei-planets";
console.log(embedCredit({ body: "mars", look: "painted" }));Wakusei Planets by John Morris (MIT). Sizes, tilt and rotation: IAU and NASA fact sheets. Surface pictures: NASA, USGS and JPL imagery in the public domain (details in the package's NOTICE.md).What it prints (run when this page was built)