We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! I am trying to generate a flipped SVG file for the black player.
I write code like this:
board := pos.Board() if pos.Turn() == chess.Black { board = board.Flip(chess.UpDown).Flip(chess.LeftRight) } if err := image.SVG(f, board); err != nil { log.Fatal(err) }
But I got this, where the a1 should be at the left top
What should I do to generate a correct SVG file? Or is this a bug?
The text was updated successfully, but these errors were encountered:
Thanks for the visualization. Yeah chess/image will likely need to be updated to support "from black" view. Flipping flips the pieces, not the board.
Sorry, something went wrong.
Fixed in #109
notnil
No branches or pull requests
Hello! I am trying to generate a flipped SVG file for the black player.
I write code like this:
But I got this, where the a1 should be at the left top
What should I do to generate a correct SVG file? Or is this a bug?
The text was updated successfully, but these errors were encountered: