Commits

Andres Vargas committed 59e2472

descubriendo animacion en animate({x,y})

Comments (0)

Files changed (3)

 	e.old_pos = null;
 	e.old_angle = 360;
 	e.is_lock = false;
-	var PATH = 10;
+	var PATH = 4;
 	var IMG_PATH ="/images/sperm_loop/sperm_loop_000";
 	e.HEIGHT = 18;
 	e.WIDTH = 138;
 				}
 				if( d == 0 || d <=PATH + 10 ) {
 					e.is_lock = false;
+					e._array_images.rotate(360);
 				}
 		//		console.log("avanza",old_pos);
 				e.esperm  = e.get_esperm(i);
 <head>
 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
 <title>Espermized</title>
-<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
 <script src="js/raphael/raphael.js" type="text/javascript" language="javascript" charset="utf-8"></script>
 <script src="js/utils.js" type="text/javascript" language="javascript" charset="utf-8"></script>
 <script src="js/esperm.js" type="text/javascript" language="javascript" charset="utf-8"></script>
+<html>
+<head>
+<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+<title>Espermized</title>
+<script src="js/raphael/raphael.js" type="text/javascript" language="javascript" charset="utf-8"></script>
+<script type="text/javascript" language="javascript" charset="utf-8">
+// <![CDATA[
+		
+var x = 0;
+var y = 1;
+var start_pos = false;
+var old_post = false;
+var	width = 1400;
+var	heigth = 480;
+
+window.onload = function () {
+
+
+	var canvas = Raphael("canvas", width, heigth);
+	// dibuja background
+	back = canvas.rect(0, 0, width, heigth, 10);
+	back.attr({fill:"black"});
+
+	var img = canvas.image("images/ovule_loop/ovule_loop_00000.png",0,0,135,167)
+	img.animate({x:100, y:100}, 100);
+
+}
+
+	// ]]>
+</script>
+
+</head>
+<body id="" >
+<div id="canvas">
+</div>
+</body>
+</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.