imageGenerator

package
v0.0.0-...-f342502 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawBasicCircle

func DrawBasicCircle(myImage *image.RGBA, x_0, y_0, radius float64, colorGradient ColorGradient, isEdge bool)

Taken from https://en.wikipedia.org/wiki/Midpoint_circle_algorithm

func DrawBasicLine

func DrawBasicLine(myImage *image.RGBA, x_0, y_0, x, y, width float64, colorGradient ColorGradient)

func DrawCircle

func DrawCircle(myImage *image.RGBA, circle Circle)

func DrawLine

func DrawLine(myImage *image.RGBA, line Line)

func GenerateImage

func GenerateImage(generatorSpecifications GeneratorSpecifications) *image.RGBA

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func Point

func Point(pointuint16 Pointuint16) image.Point

Types

type ArrowFillColor

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

func (ArrowFillColor) BorderColor

func (arrowFillColor ArrowFillColor) BorderColor() color.RGBA

func (ArrowFillColor) GetColor

func (arrowFillColor ArrowFillColor) GetColor(x, y uint16) color.RGBA

type Circle

type Circle struct {
	ColorGradient
	// contains filtered or unexported fields
}

type ColorGradient

type ColorGradient interface {
	GetColor(x, y uint16) color.RGBA
	BorderColor() color.RGBA
}

type GeneratorSpecifications

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

func GetArrow

func GetArrow(seed int64) GeneratorSpecifications

type Line

type Line struct {
	ColorGradient
	// contains filtered or unexported fields
}

type Pointuint16

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

Jump to

Keyboard shortcuts

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