From 6d649e01e2f871eb3677e09e38f6b36d9e065e74 Mon Sep 17 00:00:00 2001 From: Rafael Ortiz Date: Wed, 05 Dec 2012 05:12:49 +0000 Subject: changing to radians --- (limited to 'eye.py') 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() -- cgit v0.9.1