Giter Club home page Giter Club logo

Comments (3)

tdewolff avatar tdewolff commented on June 2, 2024

Hey Benedikt, thanks for the kind words, I'm happy to hear that the library is proving useful to you!

I've added the Path.Data function to get the private d []float64 data field, however the Scanner interface actually allows you to fully retrieve all path data and is a cleaner approach. What does the scanner not allow you to get?

from canvas.

bmuessig avatar bmuessig commented on June 2, 2024

I've added the Path.Data function to get the private d []float64 data field

Thank you very much for the quick reply and the addition.

however the Scanner interface actually allows you to fully retrieve all path data and is a cleaner approach. What does the scanner not allow you to get?

You are right, I have no idea how I did not see the Scanner.Cmd() at first glance - perhaps it somehow got lost in my IDE autocomplete. It appears to be all there.

What I thought might be useful for the next major version would be to implement the existing renderers via the Scanner interface to avoid baking them into the Path struct.

from canvas.

tdewolff avatar tdewolff commented on June 2, 2024

That's a great idea, especially for the OpenGL renderer and maybe the Fyne and Gio renderers!

from canvas.

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.