cmdline

package
v0.0.0-...-3c012e0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cmdline gathers together cmdline stuff used by fractals app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateImgParams

func ValidateImgParams(imgP *ImgParams) error

ValidateImgParams validates desired output image parameters.

func WriteImg

func WriteImg(img *image.RGBA, filepath string) error

WriteImg writes given image to a file.

Types

type CommandlineArgs

type CommandlineArgs struct {
	ImgParams
	Filepath string
	Ssocket  string
	Err      error
}

CommandlineArgs bundles together all arguments that can be passed on the commandline.

func Cmdline

func Cmdline() *CommandlineArgs

Cmdline parses and validates commandline arguments.

type ImgParams

type ImgParams struct {
	Width   int
	Height  int
	Scaling int
	Algo    string
}

ImgParams bundles together all parameters that are needed to construct an image.

Jump to

Keyboard shortcuts

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