diff --git a/.commit_template b/.commit_template index 4f86725..6686441 100644 --- a/.commit_template +++ b/.commit_template @@ -1,4 +1,6 @@ +My first commit will consist of my first milestone. Not necessarily what has been changed but what has been thought. My idea for this project was to create a house and a snowball but soon began to feel less confident with the ability to animate it. So then, I came to the conclusion that I will create a house and a rising sun for my project proposal. +Where I was first stuck was my idea for a project proposal. My original ideas seemed to be a bit more complicated as a first project and I thought of a simpler idea of creating a house and a rising sun. I figured out my project proposal. A strategy I used to get un-stuck was looking at simple project ideas and using my own environment to see what I can use as a simple project proposal. Something I wondered was "how can I get the sun to rise on one side and set on the other?". I soon decided to just keep the sun as a rising sun. What I want to learn more about is animating using code and a future idea for a project could be making a house with an animated sun rising on one side of the house and then setting on the other side of the house. # ----------------------------------------------------------------- # Write your entire commit message above this line. diff --git a/README.md b/README.md index aee1fea..3b8d5e2 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ which allows basic formatting. ## Description +I will create an animation with a house and a sun rising from the bottom left to the top left. The house will have color and windows as well, there will also be a blue sky background and the sun will also be colored in. + (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: @@ -19,3 +21,15 @@ image, move the image to this directory, and then use the following syntax: ## Planning (Include your planning here, including your project milestone.) + +### Milestone 1 + +I want to write square(), rectangle(), triangle() and circle() functions for the house and sun as my project proposal is to create a house and a rising sun. My functions for the house will consist of a roof, body, and windows which will consist color from what I learned in previous lessons. I will also create a setup for my project where I have a blue background as my sky. + +### Milestone 2 + +I want to ombine my functions to create a house and a sun with color. Then I want to create a function that will give my sun a rising movement which will create a rising sun. To do this I will create a drawing.py file where the movement of my sun will be stored. + +### Milestone 3 + +I want to combine everything together and figure out what I need to create my house and rising sun. Once I have coded my house and the sun in shapes.py and drawing.py I should get a house with windows with a blue sky and a rising sun. diff --git a/__pycache__/shapes.cpython-313.pyc b/__pycache__/shapes.cpython-313.pyc new file mode 100644 index 0000000..61caf4f Binary files /dev/null and b/__pycache__/shapes.cpython-313.pyc differ diff --git a/drawing.py b/drawing.py index 29fc89e..145390d 100644 --- a/drawing.py +++ b/drawing.py @@ -5,3 +5,25 @@ # (Briefly describe what this program does.) from turtle import * + +import turtle +import time +from shapes import draw_square, draw_triangle, draw_rectangle, draw_circle + +# setup +screen = turtle.Screen() +screen.setup(width=800, height=600) +screen.bgcolor("skyblue") +screen.tracer(0) + +pen = turtle.Turtle() +pen.speed(0) +pen.hideturtle() + + +def draw_house(): + + + +def animate_sun(): + diff --git a/md b/md new file mode 100644 index 0000000..e69de29 diff --git a/shapes.py b/shapes.py new file mode 100644 index 0000000..1e15e4e --- /dev/null +++ b/shapes.py @@ -0,0 +1,13 @@ +import turtle + +def draw_square(t, size, color="black", fill=""): + + +def draw_rectangle(t, width, height, color="black", fill=""): + + +def draw_triangle(t, size, color="black", fill=""): + + +def draw_circle(t, radius, color="black", fill=""): +