diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2012-12-05 05:12:49 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-12-05 05:12:49 (GMT) |
commit | 6d649e01e2f871eb3677e09e38f6b36d9e065e74 (patch) | |
tree | 5de7fd713ce3cf2521818b1da1b7287ea6fbea1b | |
parent | e52817e6c332128af560d0f94b528eb0777a9d79 (diff) |
changing to radiansgtk3
-rw-r--r-- | eye.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |