Methods
(static) createPiece(config, pieceColor, pieceType) → {SvgPiece}
Method which creates a piece according to color and type
Parameters:
Name | Type | Description |
---|---|---|
config |
Config | A configuration to work with. |
pieceColor |
PieceColor | the color of the piece. |
pieceType |
PieceType | the type of the piece. |
- Source:
Returns:
the newly created piece.
- Type
- SvgPiece
initialize() → {SvgCreator}
creates a new instance
- Source:
Returns:
the new instance.
- Type
- SvgCreator