Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Facts, line drawings and positions

mixfunction

Mix two #rrggbb colours: t is how much of b (0 to 1).

Import it

import { mix } from "@johnmorrisdotca/wakusei-planets";

Definition

function mix(a: string, b: string, t: number): string

Parameters

NameTypeDescription
astring

The first colour.

bstring

The second colour.

tnumber

How much of b, 0 to 1.

Returns

string

The mixed colour as #rrggbb.

Examples

import { mix } from "@johnmorrisdotca/wakusei-planets";

console.log(mix("#000000", "#ffffff", 0.5));
#808080

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.