Documentation
¶
Index ¶
- Constants
- Variables
- func Draw(game *tictactoe.TicTacToe) image.Image
- func DrawCross(gc *draw2dimg.GraphicContext, x, y float64, size float64)
- func DrawLines(gc *draw2dimg.GraphicContext)
- func DrawSpot(gc *draw2dimg.GraphicContext, board tictactoe.Board)
- func DrawWinLines(gc *draw2dimg.GraphicContext, board tictactoe.Board, symbol uint8)
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 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.
Click to show internal directories.
Click to hide internal directories.