seed r254 - trunk/examples/lightsoff
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r254 - trunk/examples/lightsoff
- Date: Wed, 12 Nov 2008 08:17:47 +0000 (UTC)
Author: hortont
Date: Wed Nov 12 08:17:47 2008
New Revision: 254
URL: http://svn.gnome.org/viewvc/seed?rev=254&view=rev
Log:
Move everything to SVG, fix line.
Added:
trunk/examples/lightsoff/back.svg
trunk/examples/lightsoff/front.svg
Removed:
trunk/examples/lightsoff/bkg.png
trunk/examples/lightsoff/bkg_top.png
Modified:
trunk/examples/lightsoff/score.js
Added: trunk/examples/lightsoff/back.svg
==============================================================================
--- (empty file)
+++ trunk/examples/lightsoff/back.svg Wed Nov 12 08:17:47 2008
@@ -0,0 +1,104 @@
+<?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="563.97571"
+ height="193.50128"
+ id="svg3307"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ version="1.0"
+ sodipodi:docname="back.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <defs
+ id="defs3309">
+ <linearGradient
+ id="linearGradient3155">
+ <stop
+ style="stop-color:#222222;stop-opacity:1;"
+ offset="0"
+ id="stop3157" />
+ <stop
+ id="stop3163"
+ offset="0.5"
+ style="stop-color:#000000;stop-opacity:1;" />
+ <stop
+ style="stop-color:#454545;stop-opacity:1;"
+ offset="1"
+ id="stop3159" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3155"
+ id="linearGradient2542"
+ gradientUnits="userSpaceOnUse"
+ x1="563.97571"
+ y1="193.50128"
+ x2="563.97571"
+ y2="-5.4687498e-06"
+ gradientTransform="translate(60.869289,572.7544)" />
+ <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="perspective3315" />
+ </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.41970601"
+ inkscape:cx="644.81282"
+ inkscape:cy="10.147356"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1440"
+ inkscape:window-height="817"
+ inkscape:window-x="0"
+ inkscape:window-y="33" />
+ <metadata
+ id="metadata3312">
+ <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(-60.869289,-572.75439)">
+ <rect
+ style="opacity:1;fill:url(#linearGradient2542);fill-opacity:1;stroke:#5d5d5d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect2540"
+ width="561.97571"
+ height="191.50128"
+ x="61.869289"
+ y="573.75439"
+ rx="20"
+ ry="19.999998"
+ inkscape:export-filename="/home/hortont/seed/examples/lightsoff/bkg.png"
+ inkscape:export-xdpi="47.906658"
+ inkscape:export-ydpi="47.906658" />
+ </g>
+</svg>
Added: trunk/examples/lightsoff/front.svg
==============================================================================
--- (empty file)
+++ trunk/examples/lightsoff/front.svg Wed Nov 12 08:17:47 2008
@@ -0,0 +1,103 @@
+<?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="557.08765"
+ height="115.03713"
+ id="svg3343"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ version="1.0"
+ sodipodi:docname="front.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <defs
+ id="defs3345">
+ <linearGradient
+ id="linearGradient3169">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:0.024;"
+ offset="0"
+ id="stop3171" />
+ <stop
+ style="stop-color:#ffffff;stop-opacity:0.42399999;"
+ offset="1"
+ id="stop3173" />
+ </linearGradient>
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3169"
+ id="linearGradient2534"
+ gradientUnits="userSpaceOnUse"
+ x1="557.08765"
+ y1="115.03713"
+ x2="557.08765"
+ y2="5.6843419e-14"
+ gradientTransform="translate(96.45619,474.84362)" />
+ <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="perspective3351" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#000000"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ gridtolerance="10000"
+ guidetolerance="10"
+ objecttolerance="10"
+ inkscape:pageopacity="1"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.4035715"
+ inkscape:cx="203.23922"
+ inkscape:cy="57.518566"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1440"
+ inkscape:window-height="817"
+ inkscape:window-x="0"
+ inkscape:window-y="33"
+ showguides="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid5070"
+ visible="true"
+ enabled="true" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata3348">
+ <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(-96.45619,-474.84362)">
+ <path
+ style="opacity:1;fill:url(#linearGradient2534);fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1"
+ d="M 116.28223,474.84362 L 633.71781,474.84362 C 644.70141,474.84362 653.54381,483.60232 653.54381,494.48196 L 653.54381,551.8605 C 600.94401,589.46528 105.72732,609.10031 96.45619,551.8605 L 96.45619,494.48196 C 96.45619,483.60232 105.29861,474.84362 116.28223,474.84362 z"
+ id="path2532"
+ sodipodi:nodetypes="ccccccc"
+ inkscape:export-filename="/home/hortont/seed/examples/lightsoff/bkg_top.png"
+ inkscape:export-xdpi="48.143238"
+ inkscape:export-ydpi="48.143238" />
+ </g>
+</svg>
Modified: trunk/examples/lightsoff/score.js
==============================================================================
--- trunk/examples/lightsoff/score.js (original)
+++ trunk/examples/lightsoff/score.js Wed Nov 12 08:17:47 2008
@@ -55,14 +55,17 @@
{
this.current_set = null;
- this.bkg_top = Clutter.Texture.new_from_file("./bkg_top.png");
- var bkg = Clutter.Texture.new_from_file("./bkg.png");
+ this.bkg_top = Clutter.Texture.new_from_file("./front.svg");
+ var bkg = Clutter.Texture.new_from_file("./back.svg");
var off_svg = Clutter.Texture.new_from_file("./off.svg");
this.bkg_top.filter_quality = Clutter.TextureQuality.high;
bkg.filter_quality = Clutter.TextureQuality.high;
off_svg.filter_quality = Clutter.TextureQuality.high;
+ bkg.set_scale(.53,.53);
+ this.bkg_top.set_scale(.535,.535);
+
this.add_actor(bkg);
for(var i = 0; i < 5; i++)
@@ -81,7 +84,7 @@
this.num_textures[i].filter_quality = Clutter.TextureQuality.high;
}
- this.bkg_top.opacity = 150;
+ this.bkg_top.opacity = 200;
this.bkg_top.set_position(1,1);
this.add_actor(this.bkg_top);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]