ring

package
v0.110.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MPL-2.0, MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawRing

func DrawRing(param *DrawRingParam) ([]byte, error)

Types

type DrawRingParam

type DrawRingParam struct {
	Theme      Theme   `json:"theme"`
	ColorHash  [][]int `json:"colorHash"`
	ImageBytes []byte  `json:"imageBytes"`
	Height     int     `json:"height"`
	Width      int     `json:"width"`
}

type Theme

type Theme int
const (
	LightTheme Theme = 1
	DarkTheme  Theme = 2
)

Jump to

Keyboard shortcuts

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