Documentation ¶
Index ¶
- Constants
- func FromDegrees(deg int) float64
- func GetPaletteMonochromatic(steps int, initialPoint string) []color.RGBA
- func GetPaletteRainbow(steps int) []color.RGBA
- func GetRules(antName string) ([]bool, error)
- func IsOutside(point image.Point, rect image.Rectangle) bool
- func NamedMatches(r, s string) map[string]string
- func Open(fileName string)
- func ParseInitialPoint(initialPoint string) (int, int, bool, int, int)
- func ParseRangeStr(rangeStr string) (minimum, maximum int, err error)
- func ParseRectangleStr(rectangleStr string) (rect image.Rectangle, scaleFactor int, err error)
- func PointRect(p image.Point, maxDimension int) image.Rectangle
- func PointSnap(p image.Point, gridSize int) image.Point
- func RectDiv(r image.Rectangle, scaleFactor int) image.Rectangle
- func RectGrow(r image.Rectangle, maxDimension int) image.Rectangle
- func StartCPUProfile(cpuprofile string)
- func StopCPUProfile()
- func WithUnderscores(num uint64) string
- type CommonFlags
Constants ¶
View Source
const AxisCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXY"
Variables ¶
This section is empty.
Functions ¶
func FromDegrees ¶
func GetPaletteMonochromatic ¶
func GetPaletteRainbow ¶
func NamedMatches ¶
func ParseRangeStr ¶
func ParseRectangleStr ¶
func StartCPUProfile ¶
func StartCPUProfile(cpuprofile string)
func StopCPUProfile ¶
func StopCPUProfile()
func WithUnderscores ¶
Types ¶
type CommonFlags ¶
type CommonFlags struct { Cpuprofile string Memprofile string Dir string InitialPoint string AntName string Radius float64 MaxSteps uint64 MinCleanStreak uint64 MaxNoisyDots uint64 MinSteps uint64 MinUniq uint64 Rectangle image.Rectangle ScaleFactor int Monochrome bool }
func (*CommonFlags) CommonFlagsSetup ¶
func (cf *CommonFlags) CommonFlagsSetup(gridLinesTotal uint8)
func (*CommonFlags) ParseArgs ¶
func (cf *CommonFlags) ParseArgs()
func (*CommonFlags) ParseShorthand ¶
func (cf *CommonFlags) ParseShorthand(shorthand string)
func (*CommonFlags) String ¶
func (cf *CommonFlags) String() string
Click to show internal directories.
Click to hide internal directories.