duit_color

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlurStyle

type BlurStyle string
const (
	Normal BlurStyle = "normal"
	Inner  BlurStyle = "inner"
	Outer  BlurStyle = "outer"
	Solid  BlurStyle = "solid"
)

type Color

type Color interface {
	ColorString | ColorRGBO
}

type ColorRGBO

type ColorRGBO struct {
	R uint8   `json:"r"`
	G uint8   `json:"g"`
	B uint8   `json:"b"`
	O float32 `json:"o"`
}

Array of 4 uint8, last item of array will be assigned as opacity

func (*ColorRGBO) MarshalJSON

func (color *ColorRGBO) MarshalJSON() ([]byte, error)

type ColorString

type ColorString string

Hex string

Jump to

Keyboard shortcuts

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