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

tsunagiColourSetfunction

A colour set as asked: one of the named sets, or colours of your own (used round and round when a board has more pairs than you gave).

Import it

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

Definition

function tsunagiColourSet(set: TsunagiColourSetName | readonly TsunagiColour[] | undefined): readonly TsunagiColour[]

Parameters

NameTypeDescription
set"marble" | "bright" | "colour-blind" | "soft" | readonly TsunagiColour[] | undefined

The native level set or palette specified by the signature.

Returns

readonly TsunagiColour[]

A colour set as asked: one of the named sets, or colours of your own (used round and round when a board has more pairs than you gave).

Examples

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

console.log(tsunagiColourSet("marble").length);
82

What it prints (run when this page was built)

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