We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
resources is a collection of helper functions to ease the import and export of objects. Below follows a list of useful functions.
resources
resources.image_from_url
This function can convert any web resource (image) into a pyglet supported image format. The returned object is a genericSprite. Example:
pyglet
sprite = resources.image_from_url('https://hvornum.se/favicon.ico', x=10, y=10)
Will create a sprite from https://hvornum.se/favicon.ico and place it at x=10, y=10.
https://hvornum.se/favicon.ico
x=10, y=10