0
此代碼將30個led圖像繪製到canvas上。如何選擇和更改led符號onMouseDown事件的來源?如何獲得paperjs上的符號圖層?
var raster = new Raster();
raster.source="/PNG/Red.png";
var sembol = new Symbol(raster);
for (var i = 0; i < 30; i++) {
var bura = sembol.place();
bura.position = Point.random() * view.size;
bura.scale(0.5);
};