Sprite - HermesPasser/Ramu GitHub Wiki
class Sprite : Drawable
Description
Displays an image.
Constructor Parameters
Image Objectimg: The image.intx: Position in x.inty: Position in y.intwidth: Width.intheight: Height.boolcanDraw: Whether it will be drawn or not. (optional, default is true)
You can test this snippet of code here.
let img = Ramu.Utils.getImage("https://i.imgur.com/E0Z8YMr.png");
let s = new Sprite(img, 10, 10, 100, 100, true);