Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Image

Source

function createImage(string path, vec2 pos, real sizeX, real sizeY) returns image

Source

Create an image at the target location, the Image has to be a blp, with transparent borders

function createImage(string path, vec2 pos, real sizeX, real sizeY, ImageLayer layer) returns image

Source

Create an image at the target location, the Image has to be a blp, with transparent borders. The layer specifies which image overlaps another: Level 1 is always on the top, and level 4 always in the background. Use the enums "ImageLayer.LX"

function static image.hide()

Source

Hides the image

function static image.hideForPlayer(player p)

Source

Hides the image for a specific player

function static image.remove()

Source

Destroy the image

function static image.setColor(colorA col)

Source

Set the image color by using the colorA tuple

function static image.setColor(color col)

Source

Set the image color by using the color tuple

function static image.setHeight(real z)

Source

Set the image height

function static image.setLevel(ImageLayer layer)

Source

Set the image layer (use the constants)

function static image.setPos(vec2 pos)

Source

Set the image 2D position

function static image.setPos(vec3 pos)

Source

Set the image 3D position

function static image.show()

Source

Shows the image

function static image.showForPlayer(player p)

Source

Shows the image for a specific player

function static image.wrap()

Source

Wrap the image on the terrain