Documentation ¶
Index ¶
- type ComplexNumberCorners
- type CreateSymmetryPattern
- type CreateWallpaperCommandMarshal
- type OutputSettings
- type OutputSettingsBuilder
- func (b *OutputSettingsBuilder) Build() *OutputSettings
- func (b *OutputSettingsBuilder) OutputHeight(height int) *OutputSettingsBuilder
- func (b *OutputSettingsBuilder) OutputWidth(width int) *OutputSettingsBuilder
- func (b *OutputSettingsBuilder) WithJSON(byteStream []byte) *OutputSettingsBuilder
- func (b *OutputSettingsBuilder) WithYAML(byteStream []byte) *OutputSettingsBuilder
- type OutputSettingsBuilderMarshal
- type PixelCorners
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 ¶
func (b *OutputSettingsBuilder) Build() *OutputSettings
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