notnil / chess

chess package for go
MIT License
517 stars 130 forks source link

Creating a slice of marks #132

Open theletterjeff opened 10 months ago

theletterjeff commented 10 months ago

I am currently working on a program that involves highlighting different squares with different colors based on the state of the board.

I'm having a bit of trouble doing so because the image.encoder type is unexported. As a result, I can't create a slice of func(*image.encoder) objects (which is what image.MarkSquares() returns) to pass to image.SVG().

Would you be open to exporting the image.encoder type, or perhaps creating an exported interface for it? If so, I'd be happy to put together a pull request for it.

notnil commented 6 months ago

Yes. Go for it.