draw

package
v0.0.0-...-cd77bea Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Width  = 350
	Height = 350
	Offset = 25.0
)

Variables

View Source
var DefaultColor color.RGBA
View Source
var FirstColor color.RGBA
View Source
var SecondColor color.RGBA

Functions

func Draw

func Draw(game *tictactoe.TicTacToe) image.Image

func DrawCross

func DrawCross(gc *draw2dimg.GraphicContext, x, y float64, size float64)

func DrawLines

func DrawLines(gc *draw2dimg.GraphicContext)

func DrawSpot

func DrawSpot(gc *draw2dimg.GraphicContext, board tictactoe.Board)

func DrawWinLines

func DrawWinLines(gc *draw2dimg.GraphicContext, board tictactoe.Board, symbol uint8)

Types

This section is empty.

Jump to

Keyboard shortcuts

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