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

drawTsunagiMarblefunction

One marble on its own, as SVG text: for a legend or an icon. pair is which of the board's pairs it is, from 0.

Import it

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

Definition

function drawTsunagiMarble(pair: number, options?: { marks?: TsunagiMarks; colours?: TsunagiColourSetName | readonly TsunagiColour[]; label?: string; style?: boolean; id?: string; }): string

Parameters

NameTypeDescription
pairnumber

The zero-based pair index.

options (optional){ marks?: TsunagiMarks; colours?: TsunagiColourSetName | readonly TsunagiColour[]; label?: string; style?: boolean; id?: string; }

Native drawing, geometry, game or mount settings.

Returns

string

One marble on its own, as SVG text: for a legend or an icon. pair is which of the board's pairs it is, from 0.

Examples

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

console.log(drawTsunagiMarble(0,{marks:"numbers"}).length);
529

What it prints (run when this page was built)

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