Smalltalk 3D图形引擎

3d世界全部使用Smalltalk代码进行编程。开源的three.js库在前端客户端Smalltalk Environment中透明使用。所有的JavaScript库都可以在Smalltalk中使用,因为语言结构非常相似Javascript就像Web的汇编器一样

 

createScene
   "Create a standard Scene"	
   scene := Three scene.   
   camera := Three perspeciveCamera angle: 75
                                    aspect: (window innerWidth) / (window innerHeight). 
                
   renderer := Three webGLRenderer.   
   renderer setSizeX: (window innerWindow) setY: (window innerHeight).   
   document body appendChild: (renderer domElement)! !