I'm trying to hide/show a Bitmap in EaselJS. As everything is drawn in a HTML5 canvas, I can't use document.getElementById('xx').style.visibility = 'hidden'
, or use the jQuery equivalent of $('#xx').hide()
.
Any idea how I can go about this? I can't seem to find it in the docs either. Thanks :)
You can set the property visible to false.
var bitmap = new createjs.Bitmap("image.png");
bitmap.visible = false;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.