How to create a new Morphic project with code - example 1
Last updated at 11:05 am UTC on 25 July 2022
Example 1
- Create a new MorphicProject
- add an example morph to that new project
- hide the docking bar in the new project
- set the background color of the new project to white
- open the project view morph in the current project thus giving access to the newly created MorphicProject
| newProject exampleMorph |
newProject := MorphicProject new.
newProject name: 'MyNewProject'.
exampleMorph := Morph new extent: 100@200; color: Color red; position: 20@20.
newProject world addMorph: exampleMorph.
newProject showWorldMainDockingBar: false.
newProject world color: Color white.
ProjectViewMorph openOn: newProject.