base16

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(fg, bg color.ARGB, colors []color.ARGB) map[string]color.ARGB

Generate generates base16 colors from selecting quantizes color. It takes color with long chroma distance to ensure colors has more variety

func GenerateRandom

func GenerateRandom(fg, bg color.ARGB) map[string]color.ARGB

GenerateRandom generate random base16 colors with given fg,bg and dark

func SelectColors

func SelectColors(colors []color.Hct, k int) []color.Hct

SelectColors selects k Hct colors maximizing angular separation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL