3 ms·
Come over to the PyCairo side of The Force! It will drawn you in and fill your path with beautiful pixels. https://cairographics.org/pycairo/ https://cairograp
by DonHopkins 8y ago
Come over to the PyCairo side of The Force! It will drawn you in and fill your path with beautiful pixels.
https://cairographics.org/pycairo/ https://cairographics.org/pycairo/
You do have a good point about Tk's canvas easy input handling though, which is something Cairo doesn't do. It's just an immediate mode drawing api like PostScript's rendering model or html canvas 2d context.
You can pass a pycairo context into C++ Python extensions, and they can go to town with it quite efficiently.
https://github.com/SimHacker/micropolis/tree/master/MicropolisCore/src/TileEngine https://github.com/SimHacker/micropolis/tree/master/Micropol...
https://github.com/SimHacker/micropolis/blob/master/MicropolisCore/src/TileEngine/src/tileengine.cpp#L377 https://github.com/SimHacker/micropolis/blob/master/Micropol...