ring

package
v0.178.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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.ColorHash `json:"colorHash"`
	ImageBytes []byte                  `json:"imageBytes"`
	Height     int                     `json:"height"`
	Width      int                     `json:"width"`
	RingWidth  float64                 `json:"ringWidth"`
}

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