function v_updateframe()
{
	if (vis_tab == 1) // Arrays tab
	{
		avis.render();
	}
	else if (vis_tab == 2)  // Variables tab
	{
		// Update visualization with new values
		vvis.setVariable('body', body_at_mouse);
		vvis.render();
	}
	else if (vis_tab == 3)  // Control flow tab
	{
		fvis.render();
	}	
	
	v_buttons['Index++'].options.visible = (vis_tab == 1);
	v_buttons['Index--'].options.visible = (vis_tab == 1);
	
	for (var k in v_buttons)
	{
		v_buttons[k].draw();
	}
}
// Called every frame from matterdemo.js

Called every frame from matterdemo.js
Called every frame from matterdemo . js
function v_updateframe()
{
	if (vis_tab == 1) 
	{
		avis.render();
	}
	else if (vis_tab == 2)  
	{
		vvis.setVariable('body', body_at_mouse);
		vvis.render();
	}
	else if (vis_tab == 3)  
	{
		fvis.render();
	}	
	v_buttons['Index++'].options.visible = (vis_tab == 1);
	v_buttons['Index--'].options.visible = (vis_tab == 1);
	for (var k in v_buttons)
	{
		v_buttons[k].draw();
	}
}
function v_updateframe ( ) { if ( vis_tab == 1 ) { avis . render ( ) ; } else if ( vis_tab == 2 ) { vvis . setVariable ( 'body' , body_at_mouse ) ; vvis . render ( ) ; } else if ( vis_tab == 3 ) { fvis . render ( ) ; } v_buttons [ 'Index++' ] . options . visible = ( vis_tab == 1 ) ; v_buttons [ 'Index--' ] . options . visible = ( vis_tab == 1 ) ; for ( var k in v_buttons ) { v_buttons [ k ] . draw ( ) ; } }
Called every frame from matterdemo.js
Called every frame from matterdemo . js
// Arrays tab
 // Variables tab
 // Update visualization with new values
 // Control flow tab
