Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/moon.py
diff options
context:
space:
mode:
authorKshitij Kumar <kshitijakumar@gmail.com>2013-01-11 14:15:17 (GMT)
committer Kshitij Kumar <kshitijakumar@gmail.com>2013-01-11 14:15:17 (GMT)
commit9f92d85b8b0ddc07fdfe91dde47bfb4f7e838db3 (patch)
tree71aa60bab80008c57cd22dda1f8c5919f312eb4a /moon.py
parenta6fbdca0953b86b634604e090b04e52823381bde (diff)
testing - cairo changes
Diffstat (limited to 'moon.py')
-rwxr-xr-xmoon.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/moon.py b/moon.py
index 320b0c6..0bebe62 100755
--- a/moon.py
+++ b/moon.py
@@ -322,6 +322,7 @@ class MoonActivity(activity.Activity):
mask_pixbuf.draw_rectangle(kgc, True, 0, 0, IMAGE_SIZE, IMAGE_SIZE)
if self.data_model.phase_of_moon <= .25:
cairo_surface.flush()
+
# New Moon to First Quarter
phase_shadow_adjust = self.data_model.phase_of_moon - abs(math.sin(self.data_model.phase_of_moon * math.pi * 4) / 18.0)
arc_scale = int(IMAGE_SIZE * (1 - (phase_shadow_adjust * 4)))