Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myHarness := CobaltHarness2 allInstances first.
  2. sierpinskiRef := myHarness activeIsland future new: TSierpinski.
  3.  
  4.     matNorm := myHarness activeIsland future new: TMaterial.
  5.     matNorm future ambientColor: #(0.9 0.6 0.5 0.5).
  6.     matNorm future diffuseColor: #(0.9 0.6 0.5 0.5).
  7.  
  8.     sierpinskiRef future material: matNorm.
  9.  
  10.     spinnerRef := myHarness activeIsland future new: TSpinner.
  11.     spObjRef := myHarness activeIsland future new: CobaltTFrameWithMenu.
  12.     spObjRef future translationX: 0 y:1 z: 0.
  13.     spinnerRef future contents: sierpinskiRef.
  14.     spinnerRef future addChild: sierpinskiRef.
  15.     myHarness activeSpace future addChild:  spObjRef.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement