Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceAdjacentColorPixel ¶
func ReplaceAdjacentColorPixel(grid PixelGrid, c Coordinate, color Color)
ReplaceAdjacentColorPixel changes all the pixels adjacent to the given coordinate of the same color to the new color.
Types ¶
type Coordinate ¶
type Coordinate struct {
Row, Col int
}
Coordinate represents a pixel location in the grid.
Click to show internal directories.
Click to hide internal directories.