Documentation
¶
Overview ¶
Package rectangle provides functions for manipulating image points and rectangles, particularly applicable to terminal user interfaces.
Index ¶
- func Capture(r image.Rectangle, pt image.Point) image.Rectangle
- func Inset(r image.Rectangle, x, y int) image.Rectangle
- func MiddleCenter(inner, outer image.Rectangle) image.Rectangle
- func Outset(r image.Rectangle, x, y int) image.Rectangle
- func SplitHorizontal(r image.Rectangle) (upper, lower image.Rectangle)
- func SplitVertical(r image.Rectangle) (upper, lower image.Rectangle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MiddleCenter ¶
MiddleCenter finds a rectangle of the size of the inner rectangle but transposed into the vertical and horizontal center of the outer rectangle.
func SplitHorizontal ¶
SplitHorizontal divides a rectangle into two stacked halves.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.