Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Input string `short:"i" description:"input image path" required:"true"`
Outputs FlagArray `short:"o" description:"output image path" required:"true"`
Background string `short:"b" description:"background color in hex"`
Number int `short:"n" default:"1" description:"number of primitives"`
Alpha int `short:"a" default:"128" description:"alpha value"`
InputSize int `short:"r" default:"256" description:"resize large input images to this size"`
OutputSize int `short:"s" default:"1024" description:"output image size"`
Mode int `` /* 219-byte string literal not displayed */
Workers int `short:"j" default:"0" description:"number of parallel workers (default uses all cores)"`
Nth int `long:"nth" default:"1" description:"save every Nth frame (put \"%d\" in path)"`
Repeat int `long:"rep" default:"0" description:"dd N extra shapes per iteration with reduced search"`
Verbose []bool `short:"v" description:"verbose"`
Configs ShapeConfigs
}
Config use with `-i`, `-o`, and `-n`.
func (*Config) SetDefaults ¶
func (cfg *Config) SetDefaults()
type ShapeConfigs ¶
type ShapeConfigs []ShapeConfig
func (*ShapeConfigs) String ¶
func (i *ShapeConfigs) String() string
Click to show internal directories.
Click to hide internal directories.