Ramu.Utils.getImage - HermesPasser/Ramu GitHub Wiki

static image Ramu.Utils.getImage(src)

Parameters

  • string src: Image source (url/filepath).

Return

image: The image.

Description

Get a image from the src.

You can test this snippet of code here.

const img = Ramu.Utils.getImage("https://i.imgur.com/E0Z8YMr.png");
let ramuLogo = new Sprite(img, 10, 10, 59, 70);