hash_colour

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: ISC Imports: 5 Imported by: 0

README

hash-colour

Generate colours from hashes for repeatable username colouring, etc.

Documentation

Index

Constants

View Source
const LUV_FLOOR = 28
View Source
const MASK24BIT = 0xFFFFFF
View Source
const MASK32BIT = 0xFFFFFFFF
View Source
const MASK5BIT = 0b11111
View Source
const MASK6BIT = 0b111111
View Source
const MASK7BIT = 0b1111111
View Source
const MASK8BIT = 0xFF
View Source
const SAT_FLOOR = 28

Variables

This section is empty.

Functions

func Colour5524

func Colour5524(s string) (sat uint64, luv uint64, hue float64)

func Colour5532

func Colour5532(s string) (sat uint64, luv uint64, hue float64)

func HPLuv24

func HPLuv24(s string) (c color.Color)

func HSLuv

func HSLuv(s string) (c color.Color)

func HexColour

func HexColour(c color.Color) (hex string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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