Issue
Is it possible to change the shape of an object in mojs?
Something like the following:
var shape = new mojs.Shape({
shape: 'circle',
fill: 'red',
radius: '20',
});
// after some timeout or delay
shape.shapeModule = 'rect';
Not sure if this is possible or not. Perhaps it would be easier to create both shapes and fade out the circle and fade in the new rectangle.
Solution
After speaking with the creator of the mojs library, it turns out this is not currently possible with mojs. There may be changes in the future that allow this, but there is currently no way to change the shape of an object.
Answered By - curran
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.