Documentation ¶
Index ¶
- func AverageSize(rect image.Rectangle) int
- func CenterColor(tmpImg image.Image) (color.Color, error)
- func DrawObject(img *image.RGBA, color color.Color, obj object.Object)
- func DrawRectangle(img *image.RGBA, color color.Color, rect image.Rectangle)
- func GetRectangle(points []image.Point) image.Rectangle
- func HLine(img *image.RGBA, col color.Color, x1, y, x2 int)
- func Rect(img *image.RGBA, col color.Color, x1, y1, x2, y2 int)
- func RectangleCenter(rect image.Rectangle) (point image.Point)
- func VLine(img *image.RGBA, col color.Color, x, y1, y2 int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageSize ¶
AverageSize gets the average of the height and width of the rectangle
func CenterColor ¶
CenterColor gets the color of the pixel in the middle of an image
func DrawObject ¶
DrawObject is a wrapper for the DrawRectangle function for objects
func DrawRectangle ¶
DrawRectangle draws a rectangle using the specified color onto an image
func GetRectangle ¶
GetRectangle creates a rectangle around a cluster of points
func RectangleCenter ¶
RectangleCenter finds the point in the middle of a rectangle
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.