bretep / Scribl

HTML5 canvas genomic graphics library

Home Page:http://chmille4.github.com/Scribl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scribl

Scribl is a HTML5 canvas-based genomics graphics library

Usage

<!DOCTYPE HTML> 
<html lang="en">
   <head>
	<script src="Scribl.min.js" ></script>
	
	<script> 

		function draw(canvasName) {  
				
				// Get Canvas and Create Chart
			  	var canvas = document.getElementById(canvasName);  	
				
				// Create Chart
				chart = new Scribl(canvas, 500);
		
				// Add Genes
				gene1 = chart.addGene( 5,    750 , '-');
				
				// Draw Chart
				chart.draw();
		}
			
	</script>

  </head>  

   <body onload="draw('canvas')">
	   <canvas id="canvas" width="750" height="330"></canvas>  
   </body>

</html>

Examples

http://chmille4.github.com/Scribl/

Documentation

Minification

The closure compiler is used to combine and minify multiple javascript files. To compile the library yourself install google closure compiler, set the correct path for the closure compiler in compile.sh and then run compile.sh ./compile.sh

License

MIT License

About

HTML5 canvas genomic graphics library

http://chmille4.github.com/Scribl/