Changeset 218
- Timestamp:
- 04/07/14 02:24:57 (11 years ago)
- Location:
- js/viewer-f0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
js/viewer-f0/index.html
r216 r218 63 63 <div id="test2"> 64 64 65 <button onclick="openCodeCreature( )">Render</button>65 <button onclick="openCodeCreature('//0\np:sh=1\np:0.545102894306183, -0.318887442350388, sh=1, sx=1.1, sy=1.1, sz=1.1\np:1.16632652282715, -0.325989931821823, sh=1, sx=1.21, sy=1.21, sz=1.21\np:1.7860780954361, 0.063004806637764, sh=1, sx=1.331, sy=1.331, sz=1.331\np:2.13026833534241, 0.818416178226471, sh=1, sx=1.4641, sy=1.4641, sz=1.4641\np:2.01168036460876, 1.77628517150879, 7.99184850157293e-17, sh=1, sx=1.61051, sy=1.61051, sz=1.61051\np:1.32041680812836, 2.62884712219238, 2.42627849650446e-16, sh=1, sx=1.771561, sy=1.771561, sz=1.771561\np:0.138709783554077, 3.0578818321228, 4.58648859180417e-16, sh=1, sx=1.9487171, sy=1.9487171, sz=1.9487171\nj:0, 1, sh=1\nj:1, 2, sh=1\nj:2, 3, sh=1\nj:3, 4, sh=1\nj:4, 5, sh=1\nj:5, 6, sh=1\nj:6, 7, sh=1\n')">Render</button> 66 66 </div> 67 67 </div> -
js/viewer-f0/js/Viewer.js
r217 r218 274 274 } 275 275 276 function openCodeCreature( ) {276 function openCodeCreature(f0genotype) { 277 277 var viewer = new Viewer(); 278 278 viewer.VisualizationSettings.context = $("#container2"); … … 282 282 viewer.NetworkSettings.width = 400; 283 283 viewer.NetworkSettings.height = 400; 284 viewer.run(viewer.Mode.CODE, "//0\np:\np: x=1");284 viewer.run(viewer.Mode.CODE, f0genotype); 285 285 } 286 286
Note: See TracChangeset
for help on using the changeset viewer.