Skip to content

Panorama.canDraw

Douglas Lacerda edited this page Dec 2, 2018 · 2 revisions

Panorama.canDraw(bool)

Parameters

bool bool: Flag to tells whether it will be drawn or not.

Description

Set the value of canDraw of its sprites.

You can test this snippet of code here.

let img = Ramu.Utils.getImage("https://github.com/HermesPasser/Ramu/blob/master/demos/img/montains.png?raw=true");
let panorama = new Panorama(img, 0, 0, 500, 500);
panorama.canDraw(true);
Clone this wiki locally