Coder Social home page Coder Social logo

Show coordinates about lila-gif HOT 3 CLOSED

lichess-org avatar lichess-org commented on June 5, 2024
Show coordinates

from lila-gif.

Comments (3)

benediktwerner avatar benediktwerner commented on June 5, 2024 2

nice. still a bit hard to read with the grey color. but do you want to create a draft PR? would make a bit more sense to discuss stuff like this there than on the issue.

from lila-gif.

cymruu avatar cymruu commented on June 5, 2024

I got it working to some point - there is still a lot of work to do with the antyaliasing to make the coordinates look nice and sharp. Sadly I have no idea how to improve it.
However I'm sharing my results with a hope it will be useful somehow.
Diff: https://github.com/lichess-org/lila-gif/compare/master...cymruu:lila-gif:cymruu/render-coordinates?expand=1
Branch: https://github.com/cymruu/lila-gif/tree/cymruu/render-coordinates

Images showing the results:
http://127.0.0.1:6175/image.gif?fen=4k3/6KP/8/8/8/8/7p/8
image
http://127.0.0.1:6175/image.gif?fen=4k3/6KP/8/8/8/8/7p/8&orientation=black
image
http://127.0.0.1:6175/example.gif

https://github.com/cymruu/lila-gif/blob/11b1386ae9f02d8660b7d0c17ad584300084fb79/example.gif

from lila-gif.

cymruu avatar cymruu commented on June 5, 2024

I just realized it wasn't antyaliasing issue. Here are the updated version screenshots

http://127.0.0.1:6175/image.gif?fen=4k3/6KP/8/8/8/8/7p/8&orientation=black&lastMove=a1a2
image

http://127.0.0.1:6175/image.gif?fen=4k3/6KP/8/8/8/8/7p/8&lastMove=h1h2
image

http://127.0.0.1:6175/example.gif
https://github.com/cymruu/lila-gif/blob/c5fd03d08fe448eafc5da2baf8c9b3b782a2a247/example.gif?raw=true

from lila-gif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.