Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2012-12-05 05:12:49 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-12-05 05:12:49 (GMT)
commit6d649e01e2f871eb3677e09e38f6b36d9e065e74 (patch)
tree5de7fd713ce3cf2521818b1da1b7287ea6fbea1b
parente52817e6c332128af560d0f94b528eb0777a9d79 (diff)
changing to radiansgtk3
-rw-r--r--eye.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/eye.py b/eye.py
index bfa84e5..6113eb5 100644
--- a/eye.py
+++ b/eye.py
@@ -112,7 +112,7 @@ class Eye(Gtk.DrawingArea):
context.arc(rect.width / 2,
rect.height / 2,
eyeSize / 2 - outlineWidth / 2,
- 0, 360)
+ 0, 2 * math.pi)
context.fill()
# outline
@@ -126,7 +126,7 @@ class Eye(Gtk.DrawingArea):
# pupil
context.set_source_rgb(0, 0, 0)
- context.arc(pupilX, pupilY, pupilSize, 0, 360)
+ context.arc(pupilX, pupilY, pupilSize, 0, 2 * math.pi)
context.fill()
return True
@@ -183,7 +183,7 @@ class Glasses(Eye):
context.stroke()
# pupil
- context.arc(pupilX, pupilY, pupilSize, 0, 360)
+ context.arc(pupilX, pupilY, pupilSize, 0, 2 * math.pi)
context.set_source_rgb(0, 0, 0)
context.fill()