[Gfx2Texture] texture = gfx2.loadImageFromUrl(url, headers)


Loads a texture from a url, great for things that render images that changes
Note that while the texture is loading, drawing it will draw a gfx2.color() colored rectangle

Parameters


url

string

The url to download the image from

[Optional] headers

string

Headers if needed to get access to the image

Return Value


texture

Gfx2Texture

The texture that will be loaded from the web