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.
Click to show internal directories.
Click to hide internal directories.