PennController for IBEX › Forums › Support › DragDrop features › Reply To: DragDrop features
October 20, 2022 at 3:48 pm
#9601
Jeremy
Keymaster
Simply print the “bear” Image element and the Canvas elements containing the other images on a bigger Canvas element, and then shuffle those:
newCanvas("mainContainer", 900,300).print() , newImage("bear","bear.png").size(100,100).print(0,0,getCanvas("mainContainer")), newImage("bearCopy","bear.png").size(100,100).cssContainer("pointer-events","none").css("pointer-events","none") , newCanvas("flowerCV", 200,200).add(0,0,newImage("flower","flower.png").size(200,200)).print(300,0,getCanvas("mainContainer")) , newCanvas("boxCV", 300,300).add(0,0,newImage("box","box.png").size(300,300)).print(600,0,getCanvas("mainContainer")) , newSelector("shuffle").add(getImage("bear"),getCanvas("flowerCV"),getCanvas("boxCV")).shuffle().disable()
Jeremy