svggen

package
v0.0.0-...-6f776b1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = ColorSet{
	ProgressActive:   "#44CC11",
	ProgressInactive: "#7A7A7A",
	White:            "white",
	Black:            "black",
}

Colors holds the application-wide color constants

Functions

func CalculateGridSize

func CalculateGridSize(width, numberOfSquares, gap int) (int, int)

func GenerateSquares

func GenerateSquares(width, squaresPerRow, numberOfSquares, filledSquares, gap int) []struct {
	X, Y  int
	Color string
}

func HandleCalendar

func HandleCalendar(c *gin.Context)

func HandleProgressBar

func HandleProgressBar(c *gin.Context)

func HandleProgressCircle

func HandleProgressCircle(c *gin.Context)

func HandleProgressWaffle

func HandleProgressWaffle(c *gin.Context)

Types

type ColorSet

type ColorSet struct {
	ProgressActive   string
	ProgressInactive string
	White            string
	Black            string
}

ColorSet defines a set of color constants

Jump to

Keyboard shortcuts

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