2d canvas library

2021-08-08 Thread treeform
You can easily use pixie with glfw or SDL2 that can open windows and get keyboard and mouse inputs, see here for examples: * *

2d canvas library

2021-08-08 Thread Stefan_Salewski
I think both Raylib and SDL2 are not bad, and Nim bindings are available. But Pixie should be the most fun, when you do not need highest performance and can accept that it is still in an early development stage. For highest performance we may consider blend2d, but that one has no real docs yet

2d canvas library

2021-08-08 Thread asrp
> Most 2d graphic libs do not support that. Cairo does not, cairo on linux uses > gtkdrawingarea for that. Ah, I'm on Linux and that might be why I was able to get input. I just had a look and I'm using the Python C FFI for both XCB and Cairo, calling `connection = xcffib.connect()` and then `c

2d canvas library

2021-08-08 Thread asrp
Thanks! That looks promising.

2d canvas library

2021-08-08 Thread Stefan_Salewski
> get keyboard and mouse input Most 2d graphic libs do not support that. Cairo does not, cairo on linux uses gtkdrawingarea for that. Maybe you want SDL2, I think it supports input. Or maybe Raylib? Note, when people say canvas, some have graphic object handling in mind. But Cairo just draws

2d canvas library

2021-08-08 Thread ingo
might come closest to your whislist

2d canvas library

2021-08-08 Thread asrp
I'm looking for recommendation for a Nim 2d graphics library that also handles input * render text at fixed (x, y) location * an easy way to get bounding boxes for text * draw lines * draw filled and empty polygons * draw filled and empty circles * get keyboard and mouse input * (op