seed r824 - trunk/examples/same-seed



Author: hortont
Date: Sun Feb  1 23:49:35 2009
New Revision: 824
URL: http://svn.gnome.org/viewvc/seed?rev=824&view=rev

Log:
Initial version of our same gnome clone (with clutter/svg/etc.)


Added:
   trunk/examples/same-seed/
   trunk/examples/same-seed/bkg.svg
   trunk/examples/same-seed/blue.svg
   trunk/examples/same-seed/board.js
   trunk/examples/same-seed/green.svg
   trunk/examples/same-seed/light.js
   trunk/examples/same-seed/main.js   (contents, props changed)
   trunk/examples/same-seed/red.svg
   trunk/examples/same-seed/yellow.svg

Added: trunk/examples/same-seed/bkg.svg
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/bkg.svg	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="639.42859"
+   height="479.57144"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docname="bkg.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3155">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop3157" />
+      <stop
+         style="stop-color:#5c5c5c;stop-opacity:1;"
+         offset="1"
+         id="stop3159" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3155"
+       id="linearGradient3161"
+       x1="652.57147"
+       y1="248.36218"
+       x2="652.57147"
+       y2="727.93359"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(28.571424,17.142857)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.35"
+     inkscape:cx="-127.85714"
+     inkscape:cy="520"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1440"
+     inkscape:window-height="842"
+     inkscape:window-x="0"
+     inkscape:window-y="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-41.714302,-265.50504)">
+    <rect
+       style="opacity:1;fill:url(#linearGradient3161);fill-opacity:1;stroke:none;stroke-width:319.71429443;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect2383"
+       width="639.42859"
+       height="479.57144"
+       x="41.714302"
+       y="265.50504" />
+  </g>
+</svg>

Added: trunk/examples/same-seed/blue.svg
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/blue.svg	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="150.57143"
+   height="150.57143"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="blue.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3179">
+      <stop
+         style="stop-color:#35669b;stop-opacity:0.96078432;"
+         offset="0"
+         id="stop3181" />
+      <stop
+         style="stop-color:#5e92c8;stop-opacity:0.96078432;"
+         offset="1"
+         id="stop3183" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3179"
+       id="linearGradient3193"
+       x1="164.71428"
+       y1="344.79077"
+       x2="315.28571"
+       y2="344.79077"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.9445351,0,0,0.9445351,13.311582,14.948077)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="4.0711576"
+     inkscape:cx="75.285713"
+     inkscape:cy="80.411518"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1440"
+     inkscape:window-height="842"
+     inkscape:window-x="0"
+     inkscape:window-y="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-164.71428,-194.21933)">
+    <rect
+       style="opacity:1;fill:url(#linearGradient3193);fill-opacity:1;stroke:#729fcf;stroke-width:1.88907015;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3157"
+       width="140.33092"
+       height="140.33092"
+       x="169.83453"
+       y="199.33958"
+       rx="9.4453506"
+       ry="9.4453506" />
+  </g>
+</svg>

Added: trunk/examples/same-seed/board.js
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/board.js	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,183 @@
+function alpha_func(alpha)
+{
+	var timeline = alpha.get_timeline();
+	var frame = timeline.get_current_frame();
+	var n_frames = timeline.num_frames;
+	var fps = timeline.fps;
+	var duration = n_frames/fps;
+	var time = frame/fps;
+
+	if ((time/=duration) < (1/2.75))
+		return Clutter.ALPHA_MAX_ALPHA*(7.5625*time*time);
+	else if (time < (2/2.75))
+		return Clutter.ALPHA_MAX_ALPHA*(7.5625*(time-=(1.5/2.75))*time+.75);
+	else if (time < (2.5/2.75))
+		return Clutter.ALPHA_MAX_ALPHA*(7.5625*(time-=(2.25/2.75))*time+.9375);
+	else
+		return Clutter.ALPHA_MAX_ALPHA*(7.5625*(time-=(2.625/2.75))*time+.984375);
+}
+
+function delete_board(timeline, board)
+{
+	board.destroy();
+	
+	return true;
+}
+
+Board = new GType({
+	parent: Clutter.Group.type,
+	name: "Board",
+	init: function(klass)
+	{
+		// Global
+
+		
+		// Private
+		var lights = new Array();
+		var all_lights = new Array();
+		
+		function _connected_lights(li)
+		{
+			if(!li)
+				return [ ];
+			
+			var x = li.get_light_x();
+			var y = li.get_light_y();
+			
+			if(li.visited)
+				return [ ];
+			
+			li.visited = true;
+			
+			var con = [li];
+			
+			// doesn't deal with state of tile yet
+			
+			if((y+1 < tiles_h) && (li.get_state() == lights[x][y+1].get_state()))
+				con = con.concat(_connected_lights(lights[x][y+1]));
+			
+			if((y-1 >= 0) && (li.get_state() == lights[x][y-1].get_state()))
+				con = con.concat(_connected_lights(lights[x][y-1]));
+			
+			if((x+1 < tiles_w) && (li.get_state() == lights[x+1][y].get_state()))
+				con = con.concat(_connected_lights(lights[x+1][y]));
+			
+			if((x-1 >= 0) && (li.get_state() == lights[x-1][y].get_state()))
+				con = con.concat(_connected_lights(lights[x-1][y]));
+			
+			return con;
+		};
+		
+		function connected_lights(li)
+		{
+			for(i in all_lights)
+			{
+				all_lights[i].visited = false;
+			}
+			
+			if(!li.get_light_x) // We're picking something other than a light!
+				return [ li ];
+			
+			return _connected_lights(li);
+		};
+		
+		var mouse_moved = function (actor, event)
+		{
+			var picked = stage.get_actor_at_pos(event.motion.x,
+												event.motion.y).get_parent();
+			
+			for(i in all_lights)
+			{
+				all_lights[i].opacity = 180;
+			}
+			
+			var cl = connected_lights(picked);
+			
+			for(i in cl)
+			{
+				cl[i].opacity = 255;
+			}
+			
+			return false;
+		};
+		
+		// Public
+		this.get_lights = function ()
+		{
+			return lights;
+		}
+		
+		this.remove_region = function (actor, event, light)
+		{
+			var cl = connected_lights(light);
+			
+			for(i in cl)
+			{
+				cl[i].flip();
+			}
+			
+			x = 0;
+			//for(x in lights)
+			{
+				var y = 0;
+				
+				while(y != lights[x].length - 1)
+				{
+					var li = lights[x][y];
+					// if find empty one
+					// pull next full one down
+					// go back one
+					
+					var p = -1, found_full = -1;
+					
+					if(li.get_closed())
+					{
+						for(p = y; p < lights[x].length; p++)
+						{
+							if(!lights[x][p].get_closed())
+							{
+								found_full = p;
+								break;
+							}
+						}
+					}
+					
+					if(found_full != -1)
+					{
+						lights[x][found_full].y += 50;
+						y--;
+					}
+					
+					y++;
+				}
+			}
+			
+			return false;
+		}
+		
+		// Implementation
+		for(var x = 0; x < tiles_w; x++)
+		{
+			lights[x] = new Array();
+			for(var y = 0; y < tiles_h; y++)
+			{
+				var offset = tile_size/2;
+				lights[x][y] = new Light();
+				all_lights.push(lights[x][y]);
+				
+				lights[x][y].set_light_x(x);
+				lights[x][y].set_light_y(y);
+				
+				lights[x][y].set_position(x * tile_size + offset,
+										  y * tile_size + offset);
+				this.add_actor(lights[x][y]);
+				lights[x][y].on.signal.button_press_event.connect(this.remove_region,
+																  lights[x][y]);
+			}
+		}
+		
+		this.signal.motion_event.connect(mouse_moved);
+		this.reactive = true;
+	}
+});
+	

Added: trunk/examples/same-seed/green.svg
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/green.svg	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="150.57143"
+   height="150.57143"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="green.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3179">
+      <stop
+         style="stop-color:#549515;stop-opacity:0.96078432;"
+         offset="0"
+         id="stop3181" />
+      <stop
+         style="stop-color:#8ae234;stop-opacity:1;"
+         offset="1"
+         id="stop3183" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3179"
+       id="linearGradient3193"
+       x1="164.71428"
+       y1="344.79077"
+       x2="315.28571"
+       y2="344.79077"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.9445351,0,0,0.9445351,13.311582,14.948077)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="4.0711576"
+     inkscape:cx="32.054766"
+     inkscape:cy="80.288704"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1440"
+     inkscape:window-height="842"
+     inkscape:window-x="0"
+     inkscape:window-y="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-164.71428,-194.21933)">
+    <rect
+       style="opacity:1;fill:url(#linearGradient3193);fill-opacity:1;stroke:#8ae234;stroke-width:1.88907015000000000;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3157"
+       width="140.33092"
+       height="140.33092"
+       x="169.83453"
+       y="199.33958"
+       rx="9.4453506"
+       ry="9.4453506" />
+  </g>
+</svg>

Added: trunk/examples/same-seed/light.js
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/light.js	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,88 @@
+var tile_svg_size = 100;
+
+function load_svg(file)
+{
+	var pb = new GdkPixbuf.Pixbuf.from_file_at_size(file, tile_svg_size,
+													tile_svg_size);
+	var tx = GtkClutter.texture_new_from_pixbuf(pb);
+	tx.filter_quality = Clutter.TextureQuality.HIGH;
+	
+	return tx;
+}
+
+var colors = [load_svg("blue.svg"),
+			  load_svg("green.svg"),
+			  load_svg("red.svg"),
+			  load_svg("yellow.svg")];
+
+Light = new GType({
+	parent: Clutter.Group.type,
+	name: "Light",
+	init: function(klass)
+	{
+		// Private
+		var closed = false;
+		var light_x, light_y;
+		var state = Math.floor(Math.random() * colors.length);
+		
+		// Public
+		this.visited = false;
+		
+		this.on = new Clutter.CloneTexture({parent_texture: colors[state],
+											reactive: true});
+		
+		this.get_state = function ()
+		{
+			return state;
+		}
+		
+		this.get_closed = function ()
+		{
+			return closed;
+		}
+		
+		this.flip = function ()
+		{
+			closed = !closed;
+			
+			if(closed)
+			{
+				this.hide();
+			}
+			else
+			{
+				this.show();
+			}
+		}
+		
+		this.set_light_x = function (new_x)
+		{
+			light_x = new_x;
+		}
+		
+		this.set_light_y = function (new_y)
+		{
+			light_y = new_y;
+		}
+		
+		this.get_light_x = function ()
+		{
+			return light_x;
+		}
+		
+		this.get_light_y = function ()
+		{
+			return light_y;
+		}
+		
+		// Implementation
+		this.on.set_size(tile_size, tile_size);
+		
+		this.opacity = 180;
+		
+		this.set_anchor_point(tile_size / 2, tile_size / 2);
+		
+		this.add_actor(this.on);
+	}
+});
+

Added: trunk/examples/same-seed/main.js
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/main.js	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,37 @@
+#!/usr/bin/env seed
+
+var tiles_w = 15;
+var tiles_h = 10;
+var tile_size = 50;
+
+// Configuration
+Seed.import_namespace("Gtk");
+Seed.import_namespace("Clutter", "0.8");
+Seed.import_namespace("GtkClutter", "0.8");
+Seed.import_namespace("GdkPixbuf");
+Seed.import_namespace("GConf");
+Seed.import_namespace("GLib");
+
+Clutter.init(null, null);
+GConf.init(null, null);
+
+Seed.include("light.js");
+Seed.include("board.js");
+
+var black = new Clutter.Color();
+Clutter.color_parse("Black", black);
+
+var stage = new Clutter.Stage();
+
+stage.title = "Same Seed";
+stage.signal.hide.connect(function () { Clutter.main_quit(); });
+stage.color = black;
+stage.set_size((tiles_w * tile_size),(tiles_h * tile_size));
+
+board = new Board();
+
+stage.add_actor(board);
+stage.show_all();
+
+Clutter.main();
+

Added: trunk/examples/same-seed/red.svg
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/red.svg	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="150.57143"
+   height="150.57143"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="red.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3179">
+      <stop
+         style="stop-color:#ee8f04;stop-opacity:0.96078432;"
+         offset="0"
+         id="stop3181" />
+      <stop
+         style="stop-color:#fcae3f;stop-opacity:0.96078432;"
+         offset="1"
+         id="stop3183" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3179"
+       id="linearGradient3193"
+       x1="164.71428"
+       y1="344.79077"
+       x2="315.28571"
+       y2="344.79077"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.9445351,0,0,0.9445351,13.311582,14.948077)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="4.0711576"
+     inkscape:cx="32.054766"
+     inkscape:cy="80.288704"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1440"
+     inkscape:window-height="842"
+     inkscape:window-x="0"
+     inkscape:window-y="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-164.71428,-194.21933)">
+    <rect
+       style="opacity:1;fill:url(#linearGradient3193);fill-opacity:1;stroke:#fcaf3e;stroke-width:1.88907015000000000;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3157"
+       width="140.33092"
+       height="140.33092"
+       x="169.83453"
+       y="199.33958"
+       rx="9.4453506"
+       ry="9.4453506" />
+  </g>
+</svg>

Added: trunk/examples/same-seed/yellow.svg
==============================================================================
--- (empty file)
+++ trunk/examples/same-seed/yellow.svg	Sun Feb  1 23:49:35 2009
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="150.57143"
+   height="150.57143"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="yellow.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   version="1.0">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3179">
+      <stop
+         style="stop-color:#dec604;stop-opacity:0.96078432;"
+         offset="0"
+         id="stop3181" />
+      <stop
+         style="stop-color:#fce94f;stop-opacity:1;"
+         offset="1"
+         id="stop3183" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3179"
+       id="linearGradient3193"
+       x1="164.71428"
+       y1="344.79077"
+       x2="315.28571"
+       y2="344.79077"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.9445351,0,0,0.9445351,13.311582,14.948077)" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="4.0711576"
+     inkscape:cx="32.054766"
+     inkscape:cy="80.288704"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1440"
+     inkscape:window-height="842"
+     inkscape:window-x="0"
+     inkscape:window-y="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-164.71428,-194.21933)">
+    <rect
+       style="opacity:1;fill:url(#linearGradient3193);fill-opacity:1;stroke:#fce94f;stroke-width:1.88907015000000000;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3157"
+       width="140.33092"
+       height="140.33092"
+       x="169.83453"
+       y="199.33958"
+       rx="9.4453506"
+       ry="9.4453506" />
+  </g>
+</svg>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]