Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · The <chikyu-space> element

setBodyPainterfunction

Change how the Sun and the planets are drawn (before the first element connects): the space view keeps their places, sizes, light, names and orbits and asks the painter only for what to draw at each place (see BodyPainter). Left alone, they are plain spheres in the right colours.

Import it

import { setBodyPainter } from "@johnmorrisdotca/chikyu-earth/space/element";

Definition

function setBodyPainter(next: BodyPainter | undefined): void

Parameters

NameTypeDescription
nextBodyPainter | undefined

The painter to use, or undefined for the plain one.

Examples

import { plainPainter } from "@johnmorrisdotca/chikyu-earth/space";
import { setBodyPainter } from "@johnmorrisdotca/chikyu-earth/space/element";

setBodyPainter({ make: (three, name) => plainPainter.make(three, name) });

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.11.0.