color

package
v0.0.0-...-59843aa Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(rgba Color) string

颜色转十六进制

Types

type Color

type Color struct {
	R uint8
	G uint8
	B uint8
	A uint8
}

func Unmarshal

func Unmarshal(color string) (rgba Color, err error)

十六进制转颜色

Jump to

Keyboard shortcuts

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