Documentation ¶
Index ¶
- func DrawBasicCircle(myImage *image.RGBA, x_0, y_0, radius float64, colorGradient ColorGradient, ...)
- func DrawBasicLine(myImage *image.RGBA, x_0, y_0, x, y, width float64, ...)
- func DrawCircle(myImage *image.RGBA, circle Circle)
- func DrawLine(myImage *image.RGBA, line Line)
- func GenerateImage(generatorSpecifications GeneratorSpecifications) *image.RGBA
- func Max(a, b int) int
- func Min(a, b int) int
- func Point(pointuint16 Pointuint16) image.Point
- type ArrowFillColor
- type Circle
- type ColorGradient
- type GeneratorSpecifications
- type Line
- type Pointuint16
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 GenerateImage ¶
func GenerateImage(generatorSpecifications GeneratorSpecifications) *image.RGBA
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
type Circle ¶
type Circle struct { ColorGradient // contains filtered or unexported fields }
type ColorGradient ¶
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
}
Click to show internal directories.
Click to hide internal directories.