portrait

package
v0.0.0-...-d6e4854 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mirror    = "mirror"
	Negative  = "negative"
	Grayscale = "grayscale"
	RightLoop = "rightLoop"
	LeftLoop  = "leftLoop"
	UpLoop    = "upLoop"
	DownLoop  = "downLoop"
)
View Source
const (
	BasicStyle     = "basic"
	WalkStyle      = "walk"
	WideStyle      = "wide"
	TiptoeStyle    = "tiptoe"
	JumpStyle      = "jump"
	SleepStyle     = "sleep"
	DeepSleepStyle = "deepSleep"
	WakeStyle      = "wake"
)
View Source
const (
	PartyTheme      = "party"
	WhiteTheme      = "white"
	BrownTheme      = "brown"
	BlackTheme      = "black"
	BrownBlackTheme = "brownBlack"
	PandaTheme      = "panda"
	YellowTheme     = "yellow"
	GreenTheme      = "green"
	MossGreenTheme  = "mossGreen"
	LightBlueTheme  = "lightBlue"
	BlueTheme       = "blue"
	BluePurpleTheme = "bluePurple"
	PurpleTheme     = "purple"
	PinkPurpleTheme = "pinkPurple"
	PinkTheme       = "pink"
	RedTheme        = "red"
	OrangeTheme     = "orange"
	GrayTheme       = "gray"
	Player2Theme    = "player2"
	Player3Theme    = "player3"
	Player4Theme    = "player4"
	Player5Theme    = "player5"
	VividTheme      = "vivid"
	RandomTheme     = "random"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Effect

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

func NewEffect

func NewEffect(stl [][]int, thm []color.Color, size int) *Effect

func (Effect) Adjust

func (e Effect) Adjust(effects string, size int) (string, error)

func (Effect) Apply

func (e Effect) Apply(effects string) ([][]int, []color.Color, error)

type Options

type Options struct {
	Size            int
	BaseSize        int
	Multiple        int
	Style           string
	Theme           string
	Effect          string
	BackgroundColor *color.RGBA
	Format          string
	Delay           int
	FileName        string
	Verbose         bool
}

type Portrait

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

func NewPortrait

func NewPortrait(o Options) *Portrait

func (*Portrait) Encode

func (p *Portrait) Encode() error

type Style

type Style struct{}

func (Style) Get

func (s Style) Get(style string) ([][]int, error)

type Theme

type Theme struct{}

func (Theme) Adjust

func (Theme) Adjust(theme string) (string, error)

func (Theme) Get

func (t Theme) Get(theme string) ([]color.Color, error)

Jump to

Keyboard shortcuts

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