Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
tcod.image_load() is deprecated and yet there's no replacement #87
Comments
|
Libtcod's image object has some dynamic internal stuff which makes it hard to port properly.
The long-term plan is to have functions return and accept NumPy arrays instead of |
|
Ah, I wondered why many objects had numpy arrays but not Image. My goal was to take the TCOD Tutorial code and make it run without warnings with the latest python-tcod. I now see that that is impossible. :( |
|
I've added some new functions in the latest version (11.4.0). With |
Using
produces a PendingDeprecationWarning: This function may be deprecated in the future. Consider raising an issue on GitHub if you need this feature.
I was unable to find any replacement for this function. Constructing a new image and setting its data by repeated calls to Image.put_pixel() does not seem reasonable (plus I don't wish to write my own PNG loader).