ring

package
v0.125.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MPL-2.0, MPL-2.0 Imports: 7 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  multiaccounts.ColourHash `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