image

package
v0.0.0-...-7ce53e0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PuzzleImage

type PuzzleImage struct {
	// contains filtered or unexported fields
}

PuzzleImage is an object that represents a puzzle image.

func NewPuzzleImage

func NewPuzzleImage(file string) (*PuzzleImage, error)

NewPuzzleImage will return a PuzzleImage object based on the given image file.

func NewPuzzleImageFromReader

func NewPuzzleImageFromReader(r io.ReadSeeker) (*PuzzleImage, error)

NewPuzzleImageFromReader will return a PuzzleImage object based on the given raw image data.

func (*PuzzleImage) Display

func (pi *PuzzleImage) Display()

Display will display the puzzle data and wait until a key has been pressed.

func (*PuzzleImage) Dispose

func (pi *PuzzleImage) Dispose()

Dispose will clean up any dangling references of the image.

func (*PuzzleImage) GetSudokuCell

func (pi *PuzzleImage) GetSudokuCell(x, y int) []byte

GetSudokuCell will return 28x28 bytes for a given x,y of a cell within a sudoku puzzle.

Jump to

Keyboard shortcuts

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