0
是否可以改變mojs中的對象的形狀?mojs改變對象的形狀
類似以下內容:如果
var shape = new mojs.Shape({
shape: 'circle',
fill: 'red',
radius: '20',
});
// after some timeout or delay
shape.shapeModule = 'rect';
不知道這是可以或不可以。也許創建兩個形狀和淡出圓形並淡入新矩形會更容易。
我以爲'shape.tune({shape:'rect'})'會做的伎倆,但它沒有奏效。 –
我預料它也會如此,但唯一不可調的屬性是shape屬性。有關詳細信息,請參閱此處:https://github.com/legomushroom/mojs/issues/89 – curran