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 · Flags by their colours

COLOUR_NAMESconstant

The names a flag's colour can have, in the order a colour picker shows them: a closed list, so a page can draw a chip for each. Frozen.

Import it

import { COLOUR_NAMES } from "@johnmorrisdotca/hata/search";

Definition

const COLOUR_NAMES: readonly ColourName[] = Object.freeze([...NAMES])

Examples

import { COLOUR_NAMES } from "@johnmorrisdotca/hata/search";

console.log(COLOUR_NAMES); // ["red", "orange", "yellow", "green", "light-blue", "blue", "purple", "brown", "black", "grey", "white"]
[
  'red',        'orange',
  'yellow',     'green',
  'light-blue', 'blue',
  'purple',     'brown',
  'black',      'grey',
  'white'
]

What it prints (run when this page was built)

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