Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · Flag source and framing metadata

ColourNametype

The names a flag's colour can have: a closed list of the words a person uses of a flag ("red, white and blue"). Two blues are both blue, and the hex says which; light-blue is the sky blue of Argentina's flag or the United Nations'.

Import it

import type { ColourName } from "@johnmorrisdotca/hata/manifest";

Also exported from: @johnmorrisdotca/hata/search

Definition

type ColourName = "red" | "orange" | "yellow" | "green" | "light-blue" | "blue" | "purple" | "brown" | "black" | "grey" | "white";

Examples

import { manifest, type ColourName } from "@johnmorrisdotca/hata/manifest";

const names: ColourName[] = (manifest("FR")?.colours ?? []).map((one) => one.name);
console.log(names); // ["blue", "red", "white"]
[ 'blue', 'red', 'white' ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.