command

package
v0.0.0-...-78d9b97 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplexNumberCorners

type ComplexNumberCorners struct {
	XMin float64 `json:"x_min" yaml:"x_min"`
	YMin float64 `json:"y_min" yaml:"y_min"`
	XMax float64 `json:"x_max" yaml:"x_max"`
	YMax float64 `json:"y_max" yaml:"y_max"`
}

ComplexNumberCorners notes the sides of a rectangle drawn in the complex space.

type CreateSymmetryPattern

type CreateSymmetryPattern struct {
	PatternViewport     ComplexNumberCorners `json:"pattern_viewport" yaml:"pattern_viewport"`
	CoordinateThreshold ComplexNumberCorners `json:"coordinate_threshold" yaml:"coordinate_threshold"`
	Eyedropper          *PixelCorners        `json:"eyedropper" yaml:"eyedropper"`

	Formula formula.Arbitrary `json:"formula" yaml:"formula"`
}

CreateSymmetryPattern records the desired command to generate.

func NewCreateWallpaperCommandFromJSON

func NewCreateWallpaperCommandFromJSON(data []byte) (*CreateSymmetryPattern, error)

NewCreateWallpaperCommandFromJSON reads the data and returns a CreateSymmetryPattern from it.

func NewCreateWallpaperCommandFromYAML

func NewCreateWallpaperCommandFromYAML(data []byte) (*CreateSymmetryPattern, error)

NewCreateWallpaperCommandFromYAML reads the data and returns a CreateSymmetryPattern from it.

type CreateWallpaperCommandMarshal

type CreateWallpaperCommandMarshal struct {
	PatternViewport     ComplexNumberCorners `json:"pattern_viewport" yaml:"pattern_viewport"`
	CoordinateThreshold ComplexNumberCorners `json:"coordinate_threshold" yaml:"coordinate_threshold"`
	Eyedropper          *PixelCorners        `json:"eyedropper" yaml:"eyedropper"`

	Formula *formula.BuilderOptionMarshal `json:"formula" yaml:"formula"`
}

CreateWallpaperCommandMarshal can be marshaled and converted to a CreateSymmetryPattern

type OutputSettings

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

OutputSettings stores how to render the transformation.

func (*OutputSettings) OutputHeight

func (o *OutputSettings) OutputHeight() int

OutputHeight is a getter.

func (*OutputSettings) OutputWidth

func (o *OutputSettings) OutputWidth() int

OutputWidth gets the output outputWidth.

type OutputSettingsBuilder

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

OutputSettingsBuilder is used to create output settings objects.

func NewOutputSettingsBuilder

func NewOutputSettingsBuilder() *OutputSettingsBuilder

NewOutputSettingsBuilder returns a new object used to Build Formula objects.

func (*OutputSettingsBuilder) Build

Build creates OutputSettings using the builder settings.

func (*OutputSettingsBuilder) OutputHeight

func (b *OutputSettingsBuilder) OutputHeight(height int) *OutputSettingsBuilder

OutputHeight sets the outputHeight.

func (*OutputSettingsBuilder) OutputWidth

func (b *OutputSettingsBuilder) OutputWidth(width int) *OutputSettingsBuilder

OutputWidth sets the outputWidth.

func (*OutputSettingsBuilder) WithJSON

func (b *OutputSettingsBuilder) WithJSON(byteStream []byte) *OutputSettingsBuilder

WithJSON consumes the yaml byte stream to fill settings.

func (*OutputSettingsBuilder) WithYAML

func (b *OutputSettingsBuilder) WithYAML(byteStream []byte) *OutputSettingsBuilder

WithYAML consumes the yaml byte stream to fill settings.

type OutputSettingsBuilderMarshal

type OutputSettingsBuilderMarshal struct {
	OutputWidth  int `json:"output_width" yaml:"output_width"`
	OutputHeight int `json:"output_height" yaml:"output_height"`
}

OutputSettingsBuilderMarshal can be marshaled and converted to a OutputSettingsBuilder

type PixelCorners

type PixelCorners struct {
	LeftSide   int `json:"left" yaml:"left"`
	RightSide  int `json:"right" yaml:"right"`
	TopSide    int `json:"top" yaml:"top"`
	BottomSide int `json:"bottom" yaml:"bottom"`
}

PixelCorners note the sides of a rectangle in integer space.

Jump to

Keyboard shortcuts

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