XTK Lesson 06
Connectivity!
author(s):
XTK
CSS
html, body {
background-color:#000;
margin: 0;
padding: 0;
height: 100%;
overflow: hidden !important;
}
JavaScript
window.onload = function() {
// create and initialize a 3D renderer
var r = new X.renderer3D();
r.init();
r.camera.position = [0, 0, 150];
// create a new X.fibers
var fibers = new X.fibers();
// .. associate the TrackVis .TRK file
fibers.file = 'https://fly.cs.umb.edu/data/X/cctrack.trk';
fibers.caption = 'The Corpus Callosum:<br>connecting the two hemispheres<br>of the human brain.';
// .. add the fibers
r.add(fibers);
// showtime!
r.render();
};