|
From: Tapio V. <aa...@us...> - 2010-01-07 17:32:38
|
Module: performous
Branch: master
Commit: b2c8a1e6d4df5e45dd6e11541f881bf23db10e18
Author: Tapio Vierros <tap...@gm...>
Date: Thu Jan 7 19:32:02 2010 +0200
Make the star a little more visible.
---
game/notegraph.cc | 2 +-
themes/default/star.svg | 45 +++++++++++++++++++++++++++++++++++++++------
2 files changed, 40 insertions(+), 7 deletions(-)
diff --git a/game/notegraph.cc b/game/notegraph.cc
index 0543be4..07679e9 100644
--- a/game/notegraph.cc
+++ b/game/notegraph.cc
@@ -113,7 +113,7 @@ void NoteGraph::draw(double time, Database const& database, Position position) {
float centery = m_baseY + (it->note + 0.4) * m_noteUnit; // Star is 0.4 notes higher than current note
float centerx = x + w - 1.2 * hh; // Star is 1.2 units from end
float rot = fmod(time * 360, 360); // They rotate!
- float zoom = (std::abs((rot-180) / 360.0f) + 0.5f) * 2.0 * hh;
+ float zoom = (std::abs((rot-180) / 360.0f) * 0.8f + 0.6f) * (position == NoteGraph::TOP ? 3.0 : 2.0) * hh;
glutil::Translation tr(centerx, centery);
glutil::Rotation rt(rot, 0.0f, 0.0f, 1.0f);
m_star.draw(Dimensions().stretch(zoom, zoom).center().middle(), TexCoords());
diff --git a/themes/default/star.svg b/themes/default/star.svg
index c53b6a1..3465490 100644
--- a/themes/default/star.svg
+++ b/themes/default/star.svg
@@ -96,6 +96,39 @@
r="30.551558"
gradientTransform="matrix(1,0,0,0.95456924,0,1.3128087)"
gradientUnits="userSpaceOnUse" />
+ <filter
+ id="filter3086"
+ inkscape:label="Drop shadow"
+ width="1.5"
+ height="1.5"
+ x="-.25"
+ y="-.25">
+ <feGaussianBlur
+ id="feGaussianBlur3088"
+ in="SourceAlpha"
+ stdDeviation="4,000000"
+ result="blur" />
+ <feColorMatrix
+ id="feColorMatrix3090"
+ result="bluralpha"
+ type="matrix"
+ values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 0,500000 0 " />
+ <feOffset
+ id="feOffset3092"
+ in="bluralpha"
+ dx="0,000000"
+ dy="0,000000"
+ result="offsetBlur" />
+ <feMerge
+ id="feMerge3094">
+ <feMergeNode
+ id="feMergeNode3096"
+ in="offsetBlur" />
+ <feMergeNode
+ id="feMergeNode3098"
+ in="SourceGraphic" />
+ </feMerge>
+ </filter>
</defs>
<sodipodi:namedview
id="base"
@@ -113,10 +146,10 @@
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
- inkscape:window-width="1280"
- inkscape:window-height="725"
+ inkscape:window-width="1440"
+ inkscape:window-height="854"
inkscape:window-x="0"
- inkscape:window-y="25"
+ inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata2468">
@@ -136,19 +169,19 @@
transform="translate(-110.35967,-771.51188)">
<path
sodipodi:type="star"
- style="fill:url(#radialGradient3602);fill-opacity:1;fill-rule:nonzero;stroke:none"
+ style="fill:url(#radialGradient3602);fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter3086)"
id="path2822"
sodipodi:sides="5"
sodipodi:cx="31.964287"
sodipodi:cy="31.857143"
sodipodi:r1="32.125885"
- sodipodi:r2="3.2125885"
+ sodipodi:r2="4.8188829"
sodipodi:arg1="0.93111088"
sodipodi:arg2="1.5577518"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
- d="M 51.141613,57.631213 32.006192,35.069459 13.377809,58.06049 28.922143,32.889658 1.2998864,22.277632 30.042233,29.282957 31.599122,-0.26666619 33.818536,29.233694 62.403003,21.583048 35.03233,32.809949 51.141613,57.631213 z"
+ d="M 51.141613,57.631213 32.027145,36.675616 13.377809,58.06049 27.401071,33.405915 1.2998864,22.277632 29.081206,27.995864 31.599122,-0.26666619 34.745661,27.92197 62.403003,21.583048 36.566351,33.286352 51.141613,57.631213 z"
transform="matrix(1.0474097,0,0,1.0972591,108.99816,771.80448)" />
</g>
</svg>
|