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 data door: hand the package your own maps of the Earth or orbit data as a source with its own licence and credit, and see whose data is on the screen

samplesAreBlankfunction

True when every sampled pixel is black, which is the picture the service returns for a day it has no swath for (a 200, not a 404).

Import it

import { samplesAreBlank } from "@johnmorrisdotca/chikyu-earth/door";

Definition

function samplesAreBlank(pixels: Uint8ClampedArray): boolean

Parameters

NameTypeDescription
pixelsUint8ClampedArray<ArrayBufferLike>

RGBA bytes.

Returns

boolean

Whether every pixel is black.

Examples

import { samplesAreBlank } from "@johnmorrisdotca/chikyu-earth/door";

console.log(samplesAreBlank(new Uint8ClampedArray([0, 0, 0, 255])));
true

What it prints (run when this page was built)

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