config

package
v0.0.0-...-095d4b6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	Width, Height int
}

type Colors

type Colors struct {
	Scheme []color.RGBA
}

type Config

type Config struct {
	Type   string
	Out    Out
	Canvas Canvas
	Colors Colors
}

func Default

func Default() Config

Default to a small image for the sake of speed.

func New

func New(filename string) Config

func (Config) OutURL

func (cfg Config) OutURL() string

OutURL returns the default file location

type Out

type Out struct {
	Prefix string // for naming files
	Dir    string // where the output of the process will go.
}

Jump to

Keyboard shortcuts

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