-
Notifications
You must be signed in to change notification settings - Fork 1
resources
Anton Hvornum edited this page Oct 26, 2019
·
3 revisions
resources
is a collection of helper functions to ease the import and export of objects.
Below follows a list of useful functions.
This function can convert any web resource (image) into a pyglet
supported image format.
The returned object is a genericSprite.
Example:
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
.