0.1.10 • Published 11 years ago

mei-goban v0.1.10

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

mei-goban

Goban for meishengo in HTML5 Canvas

mei-goban preview

Usage

Create and append goban

var goban = new Goban();
parentNode.appendChild(goban.el);

API

  • goban.set(key, value)

    • 'width' / 'height' : resize goban canvas
    • 'size' : goban type (9/13/19)
    • 'boardColor' : lines and hoshis color
    • 'blackStoneColor' : color of a black stone
    • 'whiteStoneColor' : color of a white stone
  • goban.putStone(row, col, color)

  • row : stone row
  • col : stone col
  • color : 'black' or 'white'

  • goban.removeStone(row, col)

  • row : stone row
  • col : stone col

  • goban.on(event, callback)

  • event : 'intersection:mousedown' / 'intersection:mouseup' / 'intersection:mousemove'
  • callback : got params row & col
0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.8

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago