Documentation ¶
Index ¶
- func BoundingBox(pts []image.Point) image.Rectangle
- func DrawCircle(img draw.Image, center image.Point, radius int, color color.Color)
- func EachCirclePx(center image.Point, radius int, fn func(image.Point) (stop bool))
- func PtIx(r image.Rectangle, x, y int) int
- func SubImage(img image.Image, bounds image.Rectangle) image.Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundingBox ¶
BoundingBox returns the smallest rectangle that contains all of the given points.
func DrawCircle ¶
DrawCircle draws a circle onto the given image.
func EachCirclePx ¶
EachCirclePx calls fn for each pixel within the circle defined by center and radius.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.