colorizer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBackground

func GenerateBackground(text string) (string, string)

Types

type OkLCH

type OkLCH struct {
	L float64
	C float64
	H float64
	A uint8
}

func BackgroundFrom

func BackgroundFrom(text string) *OkLCH

func ForegroundFrom

func ForegroundFrom(color *OkLCH) *OkLCH

func (*OkLCH) RGBA

func (c *OkLCH) RGBA() *color.RGBA

Jump to

Keyboard shortcuts

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