day151

package
v0.0.0-...-36687a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 0 Imported by: 0

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 Color

type Color rune

Color represents a unique color that a pixel can have.

type Coordinate

type Coordinate struct {
	Row, Col int
}

Coordinate represents a pixel location in the grid.

type PixelGrid

type PixelGrid [][]Color

PixelGrid is a 2-D grid of pixel colors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL