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 Sun, Moon and planets: pure parts

blendfunction

A frame between two others, t from 0 to 1. The spin goes the short way round, so a step under half a turn is right.

Import it

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

Definition

function blend(a: Frame, b: Frame, t: number): Frame

Parameters

NameTypeDescription
aFrame

The earlier frame.

bFrame

The later frame.

tnumber

How far from a to b, from 0 to 1.

Returns

Frame

The frame at that fraction.

Examples

import { blend, frameAt } from "@johnmorrisdotca/chikyu-earth/space";

const start = Date.UTC(2026, 10, 2);
const middle = blend(frameAt(start), frameAt(start + 1000), 0.5);
console.log(middle.ms - start);
500

What it prints (run when this page was built)

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