util

package
v0.0.0-...-c86976e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultQuality = 80

Variables

This section is empty.

Functions

func FileExists

func FileExists(filepath string) bool

func LoadFontFace

func LoadFontFace(size int, dpi int) (*font.Face, error)

LoadFontFace godoc Loads dejavusansmono and returns *font.Face with full hinting

func SaveImage

func SaveImage(ctx *gg.Context, path string) error

func Shuffle

func Shuffle(inStr string) string

Types

type RandRange

type RandRange struct {
	Min int
	Max int
}

func NewRandRange

func NewRandRange(min int, max int) *RandRange

func (*RandRange) Next

func (rr *RandRange) Next() int

Jump to

Keyboard shortcuts

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