GithubHelp home page GithubHelp logo

Comments (5)

dumblob avatar dumblob commented on July 2, 2024

Affine transformations are not supported currently - see vurtun/nuklear#844 (comment) and vurtun/nuklear#841 (comment) .

from nuklear.

ronaaron avatar ronaaron commented on July 2, 2024

I see. Well, it would be incredibly useful to have at least rotate and translate.

It's not currently possible to draw text at an arbitrary angle or on a path. I mean, it could be made to work by manually applying transforms, but that should be in the API IMO.

from nuklear.

dumblob avatar dumblob commented on July 2, 2024

It's not currently possible to draw text at an arbitrary angle or on a path.

That's very advanced stuff actually.

when drawing an analog clock.

Affine transformations for arbitrary vector graphics (lines, curves, ...) is a very different world than affine transformations for fonts. So you're actually proposing significantly increase the size of the library, the API, etc. I'm not sure this'll happen any time soon. But PRs are always welcome 😉.

from nuklear.

ronaaron avatar ronaaron commented on July 2, 2024

Ah, well.

from nuklear.

ronaaron avatar ronaaron commented on July 2, 2024

I've implemented support for rotation etc in my fork. The "NK_SPECIAL" command holds the information necessary (x,y,z,theta), and you need to add support in the back-end to handle the commands appropriately.

Here you can see an example of what the end result looks like, as implemented in 8th.

Feel free to merge my changes if you like them.

from nuklear.

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.