Comments (5)
Affine transformations are not supported currently - see vurtun/nuklear#844 (comment) and vurtun/nuklear#841 (comment) .
from nuklear.
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.
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.
Ah, well.
from nuklear.
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)
- How do you set "default text" in a text field? HOT 3
- colorpicker - can't change hue before changing val/sat first HOT 1
- center window title at the middle HOT 2
- Cannot avoid STB_RECT_PACK_IMPLEMENTATION / STB_TRUETYPE_IMPLEMENTATION HOT 1
- Knob widgets HOT 2
- glfw Opengl4 demo Segmentation fault HOT 7
- Possible fix/improvement for d3d12 demo
- Resizing main nuklear window's height depending on inner content size HOT 1
- Is there some kind of multicombobox? HOT 9
- GDI+ (gdip), Text Input Copy/Paste/Ctrl+A not working HOT 5
- Create a SDL backend File_Browser HOT 1
- Way to "Grey out"/disable a widget? HOT 2
- Incorrect returned value in nk_group_scrolled_offset_begin
- Errors Reported By Facebook Infer
- Using SDL_GetWindowBordersSize() messes up everything. HOT 3
- Line chart performance: boxes on points make line charts much slower than without HOT 1
- Is it possible to know whether input is captured?
- Creating a nk_image with the sdl_renderer backend HOT 2
- Errors in compiling https://immediate-mode-ui.github.io/Nuklear/doc/#nuklear/example
- Two Issues with Fonts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuklear.