From a4afb410ece0d3bf514aa4f0202fa1ade44243ae Mon Sep 17 00:00:00 2001 From: Spencerscooper Date: Thu, 14 Dec 2023 09:29:45 +0000 Subject: [PATCH] Pretty face --- Week-3/Pretty-picture/Challenges1.py | 12 +++++------- Week-3/Pretty-picture/Challenges2.py | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 Week-3/Pretty-picture/Challenges2.py diff --git a/Week-3/Pretty-picture/Challenges1.py b/Week-3/Pretty-picture/Challenges1.py index aeb251b..f6eb7a6 100644 --- a/Week-3/Pretty-picture/Challenges1.py +++ b/Week-3/Pretty-picture/Challenges1.py @@ -4,14 +4,12 @@ from gasp import * begin_graphics() -Circle((350,255),100)#This cirecle represent head -Circle((300,255), 20) #This circle represent left eye -Circle((370,260),20) #This circle represent left eye - - - - +Circle((300, 350), 90)#This cirecle represent head +Circle((350, 370), 15) #This circle represent left eye +Circle((250, 370), 15) #This circle represent left eye +Arc((300, 350), 40, 225, 330) +Line((300, 400), (230, 250)) update_when("key_pressed") diff --git a/Week-3/Pretty-picture/Challenges2.py b/Week-3/Pretty-picture/Challenges2.py new file mode 100644 index 0000000..7dff8c1 --- /dev/null +++ b/Week-3/Pretty-picture/Challenges2.py @@ -0,0 +1,20 @@ +from gasp import * +begin_graphics() + + +Circle((300, 200), 100) +Circle((240, 240), 15) +Circle((360, 240), 15) +Line((500, 300), (400,220)) +Line((380, 260), (330,260)) +Line((270, 260), (220,260)) +Line((300, 260), (270, 200)) +Line((300, 260), (340, 200)) +Line((340, 200), (270, 200)) +Arc((300, 190), 40, 225, 315) +Arc((420, 220), 30, 235, 510) +Arc((200, 220), 30, 60, 630) + + +update_when('key_passed') +end_graphics()