gui

package
Version: v0.0.0-...-149d728 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CellSize = 100
	White    = 0xFFFFFF
	Black    = 0x000000
	Width    = 900
	Height   = 900
)

Variables

This section is empty.

Functions

func RenderBG

func RenderBG(r *sdl.Renderer) error

RenderBG renders the background

func RenderBoard

func RenderBoard(r *sdl.Renderer, font *ttf.Font, board sudoku.Sudoku) error

RenderBoard renders only the grid

func RenderCell

func RenderCell(r *sdl.Renderer, x, y int) error

RenderCell renders a single square

func RenderLine

func RenderLine(r *sdl.Renderer, x0, y0, x1, y1 int) error

RenderLine renders a line

func RenderNum

func RenderNum(r *sdl.Renderer, f *ttf.Font, x, y, num int) error

RenderNum renders only a number

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL