Skip to the content

Tsunagi繋ぎ

Join each pair with a separate line and fill the board, through fixed levels or seeded puzzles.

Tsunagi means joining in Japanese. About the name

Contents

Reference · SVG board

hslfunction

A colour as a CSS string, lightened or darkened by shift percentage points, at an opacity.

Import it

import { hsl } from "@johnmorrisdotca/tsunagi/draw";

Definition

function hsl([hue, saturation, lightness]: TsunagiColour, shift?: number, alpha?: number): string

Parameters

NameTypeDescription
optionsTsunagiColour

Native drawing, geometry, game or mount settings.

shift (optional)number

The lightness adjustment.

alpha (optional)number

The opacity used in the CSS colour.

Returns

string

A colour as a CSS string, lightened or darkened by shift percentage points, at an opacity.

Examples

import { hsl } from "@johnmorrisdotca/tsunagi/draw";

console.log(hsl([120,50,40]));
hsl(120, 50%, 40%)

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tsunagi 1.7.0.