Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Backgrounds for a bracket

toHexfunction

Writes a colour as #rrggbb.

Import it

import { toHex } from "@johnmorrisdotca/taisen-brackets/backgrounds";

Definition

function toHex(c: Parameters<typeof shared.toHex>[0]): string

Parameters

NameTypeDescription
cRgb

The red, green and blue, 0 to 255.

Returns

string

The colour in lower-case hexadecimal.

Examples

import { toHex } from "@johnmorrisdotca/taisen-brackets/backgrounds";

console.log(toHex([47, 93, 74]));
#2f5d4a

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.