diff --git a/README.md b/README.md index aee1fea..2b93487 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,25 @@ which allows basic formatting. ## Description -(Describe your goal for this project. If you want to link to an -image, move the image to this directory, and then use the following syntax: +I will create an animation of a ghost with a text bubble of boo! -![Description](filename.png) - -) +![ghost idea](image-1.png) ## Planning -(Include your planning here, including your project milestone.) +### Milestone 1 +write circle (radius, color) functions for the body of the ghost, and eyes, and three small circle to make the squiggle of the ghost + +Create circle (radius, color) function to create text bubble + +Create text function for text bubble + + +### Milestone 2 +Combine functions and create the ghost +Combine functions to create text bubble + +### Milestone 3 +Animate the text bubble + + diff --git a/animation_tests.py b/animation_tests.py new file mode 100644 index 0000000..2e20167 --- /dev/null +++ b/animation_tests.py @@ -0,0 +1,13 @@ +from superturtle.animation import animate +from turtle import forward, right + +def square(side_length): + for side in range(4): + forward(side_length) + right(90) + +for frame in animate(40, loop=True): + size = frame.interpolate(50, 100, mirror=True) + square(size) + + \ No newline at end of file diff --git a/drawing.py b/drawing.py index 29fc89e..034f578 100644 --- a/drawing.py +++ b/drawing.py @@ -5,3 +5,59 @@ # (Briefly describe what this program does.) from turtle import * + +def draw_circle(radius, color): + fillcolor(color) + begin_fill() + circle(radius) + end_fill() + +draw_circle(50, "medium purple") + + +def half_circle(radius, color): + fillcolor(color) + begin_fill() + circle(radius, 180) + end_fill() + +half_circle(100, "medium purple") + +def draw_eye(x,y,radius,color): + penup() + goto(x,y) + pendown() + fillcolor(color) + begin_fill() + circle(radius) + end_fill() + + +draw_eye(100,0,20, "black") + +def text_bubble(x,y, width, height, color): + penup() + goto(x,y) + pendown() + fillcolor(color) + begin_fill() + for i in range(2): + circle(height/2,90) + forward(height) + circle(height/2,90) + forward(width) + end_fill() + +text_bubble(100,150, 40, 60, "orange") + +def text(x, y, message, text_color,size): + penup() + goto(x,y) + pendown() + color(text_color) + write(message,size) + +text(160, 160, "BOO!", "black", 30) + + +input() \ No newline at end of file diff --git a/image-1.png b/image-1.png new file mode 100644 index 0000000..5e6b60c Binary files /dev/null and b/image-1.png differ