options

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Antialias

type Antialias struct {
	Type string `json:"type"`
}

func (Antialias) Kernel

func (a Antialias) Kernel() wav2png.Kernel

func (*Antialias) Set

func (a *Antialias) Set(s string) error

func (Antialias) String

func (a Antialias) String() string

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

func (Cursor) Fn

func (c Cursor) Fn() CursorFunc

func (Cursor) Render

func (c Cursor) Render(h int) *image.NRGBA

func (*Cursor) Set

func (c *Cursor) Set(s string) error

func (Cursor) String

func (c Cursor) String() string

type CursorFunc

type CursorFunc func(t, duration time.Duration) float64

type Fill

type Fill struct {
	Fill   string `json:"fill"`
	Colour string `json:"colour"`
	Alpha  uint8  `json:"alpha"`
}

func (*Fill) FillSpec

func (f *Fill) FillSpec() wav2png.FillSpec

func (*Fill) Set

func (f *Fill) Set(s string) error

func (Fill) String

func (f Fill) String() string

type Grid

type Grid struct {
	Grid    string `json:"grid"`
	Colour  string `json:"colour"`
	Alpha   uint8  `json:"alpha"`
	Size    string `json:"size"`
	WH      string `json:"wh"`
	Overlay bool   `json:"overlay"`
}

func (Grid) GridSpec

func (g Grid) GridSpec() wav2png.GridSpec

func (*Grid) Set

func (g *Grid) Set(s string) error

func (Grid) String

func (g Grid) String() string

type Mix

type Mix string

func (Mix) Channels

func (m Mix) Channels() []int

func (*Mix) Set

func (m *Mix) Set(s string) error

func (Mix) String

func (m Mix) String() string

type Padding

type Padding int

type Palette

type Palette string

func (Palette) Palette

func (p Palette) Palette() wav2png.Palette

func (*Palette) Set

func (p *Palette) Set(s string) error

func (Palette) String

func (p Palette) String() string

type Scale

type Scale struct {
	Horizontal float64 `json:"horizontal"`
	Vertical   float64 `json:"vertical"`
}

func (*Scale) Set

func (s *Scale) Set(v string) error

func (Scale) String

func (s Scale) String() string

type Size

type Size struct {
	Width  int `json:"width,omitempty"`
	Height int `json:"height,omitempty"`
}

Jump to

Keyboard shortcuts

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