Skip to content

dangeo773/chanim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Chanim - Chess animation library for manim.

384210533_2372771042932836_696436315772457726_n

BOARD

To use a board, you can create a Chessboard object using the Board() instantiator.

my_board = Board()

Boards have an instance variable for every square, which you can refer to, shown in the following block of code.

starting_king_square = my_board.e1

You can also refer to the entire board at once if you want to select everything with .board. The following code uses the Create animation to animate the entire board appearing at once.

self.play(Create(my_board.board))

PIECES

You can create a piece object by calling their respective methods, and pass in the color to specify the pieces' color.

white_pawn = Pawn(WHITE)
black_bishop = Bishop(BLACK)
white_rook = Rook(WHITE)
black_queen = Queen(BLACK)
white_king = King(WHITE)
black_knight = Knight(BLACK)

About

Chess animation library for manim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages