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

beadShadesfunction

A marble on a line's way between its ends: the pair's colour, or for numbers the line's own soft tint, with nothing written on it.

Import it

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

Definition

function beadShades(colour: TsunagiColour, marks: TsunagiMarks): { light: string; body: string; rim: string; }

Parameters

NameTypeDescription
colourTsunagiColour

The hue, saturation and lightness triple.

marksTsunagiMarks

Whether marbles show colours or numbers.

Returns

{ light: string; body: string; rim: string; }

A marble on a line's way between its ends: the pair's colour, or for numbers the line's own soft tint, with nothing written on it.

Examples

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

console.log(beadShades([120,50,40],"numbers"));
{
  light: 'hsl(120, 30%, 84%)',
  body: 'hsl(120, 30%, 62%)',
  rim: 'hsl(120, 30%, 44%)'
}

What it prints (run when this page was built)

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