diff options
author | Kshitij Kumar <kshitijakumar@gmail.com> | 2013-01-11 14:15:17 (GMT) |
---|---|---|
committer | Kshitij Kumar <kshitijakumar@gmail.com> | 2013-01-11 14:15:17 (GMT) |
commit | 9f92d85b8b0ddc07fdfe91dde47bfb4f7e838db3 (patch) | |
tree | 71aa60bab80008c57cd22dda1f8c5919f312eb4a /moon.py | |
parent | a6fbdca0953b86b634604e090b04e52823381bde (diff) |
testing - cairo changes
Diffstat (limited to 'moon.py')
-rwxr-xr-x | moon.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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))) |