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 · /meteors

streaksPerSecondfunction

How many streaks a second are drawn for a mean hourly rate over the dark part of the view: 2.5 a second where the whole view is dark on a night with no shower, more with a shower but squeezed (the 0.6th power) and never over nine, none where nothing in view is dark. A streak stands for a great many meteors: the count follows the real rate, it does not equal it. strength (0 to 1, the page's meteors-strength) then scales the count: half the streaks at 0.5, none at 0.

Import it

import { streaksPerSecond } from "@johnmorrisdotca/chikyu-earth/meteors";

Definition

function streaksPerSecond(meanHourlyRate: number, strength?: number): number

Parameters

NameTypeDescription
meanHourlyRatenumber

The mean over the view of each place's hourly rate times how dark it is there (hourlyRateAt, darkness).

strength (optional)number

How strongly the streaks are drawn, from 0 to 1 (1 when left out); a number outside the range is brought to its nearest end.

Returns

number

Streaks a second.

Examples

import { streaksPerSecond } from "@johnmorrisdotca/chikyu-earth/meteors";

console.log(streaksPerSecond(8), streaksPerSecond(0), streaksPerSecond(100000), streaksPerSecond(8, 0.5)); // 2.5 0 9 1.25
2.5 0 9 1.25

What it prints (run when this page was built)

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