cmd

package
v0.0.0-...-1a937e6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosestHeaderName

func ClosestHeaderName(fname string, name string) (string, error)

ClosestHeaderName returns a header name containing <name>

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ReadCoeffs

func ReadCoeffs(fname string) (map[string]float64, error)

ReadCoeffs return a map with the coefficients

Types

type ColorCycle

type ColorCycle struct {
	Colors  []color.RGBA
	Current int
}

ColorCycle is a type that represents a color cycle

func JosephAndHisBrothers

func JosephAndHisBrothers() ColorCycle

JosephAndHisBrothers return a color cycle extracted by Google arts for the image Joseph And His Brothers by

func (*ColorCycle) Get

func (cc *ColorCycle) Get(i int) color.RGBA

Get given color

func (*ColorCycle) Next

func (cc *ColorCycle) Next() color.RGBA

Next returns the color and updates the scheme to the next

type GlyphCycle

type GlyphCycle struct {
	Glyphs  []draw.GlyphDrawer
	Current int
}

GlyphCycle contains different glyphs

func NewDefaultGlyphCycle

func NewDefaultGlyphCycle() GlyphCycle

NewDefaultGlyphCycle returns a new instance of GlyphCycle containing some predefined glyphs

func (*GlyphCycle) Next

func (g *GlyphCycle) Next() draw.GlyphDrawer

Next returns the next shape

Jump to

Keyboard shortcuts

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