pv.MorphicScene.create = function(type) {
var morph;
switch (type) {
case 'g':
debugger
morph = lively.morphic.Morph.makeRectangle(0,0,0,0);
morph.setFill(null);
break;
case 'rect':
morph = lively.morphic.Morph.makeRectangle(0,0,0,0);
break;
case 'line':
// morph = new PathMorph([pt(0,0), pt(0,0)]);
morph = lively.morphic.Morph.makeRectangle(0,0,0,0);
break;
case 'path':
morph = lively.morphic.Morph.makeRectangle(0,0,0,0);
//morph = new Morph(new lively.scene.Path([new lively.scene.MoveTo(false, 0, 0)]));
break;
case 'circle':
morph = lively.morphic.Morph.makeCircle(pt(0,0), 0)
break;
case 'text':
morph = new TextMorph();
break;
default:
debugger;
throw new Error('Type to create is not implemented for morphic!');
}
return morph;
};