generated from mwc/project_drawing
Commit 3: Created watching penguins
I had a lot of fun creating the animation of walking penguins. I initially didn't understand how the frames worked but reading the source code helped me a lot. While creating an animation I realized that I needed to edit my static drawing functions. I still need to edit them to firther my animation. For some strange reason when running my animation, i get the background and i need to hit enter before the animation starts playing. I don't understand why this occurs. Is it something I did or is that just how it runs? Commit 1: Created a static image of a penguin on an iceberg I was struggling how to draw an oval for my penguin. I needed to look up videos/read up how to do it. I also had to look up how to set the size of the image. I found it really difficult to just start the penguin, but once I got the shapes I felt more comfortable. Commit 2: Created an iteration of penguins Created a function penguins which iterates the drawing of the penguin until the end of the screen. I needed to do some debugging for this to work, I managed to solve it, but I don't know how I fixed the issue. For some strange reason it's drawing the first penguin twice and I don't know why. I need to figure that out. This part was much easier than drawing out the shapes.
This commit is contained in:
11
diving_penguins.py
Normal file
11
diving_penguins.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from superturtle.animation import animate
|
||||
from penguins import *
|
||||
from drawing import *
|
||||
|
||||
for frame in animate(60, debug=False, loop=True):
|
||||
if frame.index%2==0:
|
||||
penguins(120,0,0)
|
||||
else:
|
||||
penguins(120,345,35)
|
||||
|
||||
input()
|
||||
Reference in New Issue
Block a user