Awesome Open Source
Awesome Open Source

Scribl

Scribl is a HTML5 canvas-based genomics graphics library

publication - http://www.ncbi.nlm.nih.gov/pubmed/23172864

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.rb from the main directory

ruby utils/compile.rb

License

MIT License

Alternatives To Scribl
Select To Compare


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,060,209
Html (241,724
Compiler (15,412
Canvas (10,665
Graphics (7,885
Closure (3,024
Html5 Canvas (789
Closure Compiler (344