First came python now a turtle? - Little Me


A snowy suggestion


It was snowing outside, snowflakes were piling, I was bored. It was time for some programming!
I picked the project turtle snowflakes because it was a interesting project in the raspberry pi 400 and the season confirmed the decision.

I started of by figuring out what a turtle was in programming. I learned that python does not come with a tool that will actually draw lines, Instead people write lines of code which we code. Basically people code the turtle what it should do when we tell it to do something, and our job is to use that turtle in our program to create snowflakes. The turtle is no stored in python instead many types of code just like turtle are stored in a library just for these pieces of code but the twist is that this library is stored online so we can easily access it. Our first step was to import the turtle which means to get the turtle from the library and store it in python so that it can recognize the turtle. Once that is done all we need to do is program the turtle.( it is called turtle because instead of an arrowhead there was supposed to be a animated turtle but as that was not needed it is now a arrowhead). 

as all that stuff was ready I started coding, I decided using vs code for this as it was a bit easier than using Thonny python. I first started off by just making basic polygons. Then I tried to make the actual structure of the snowflake using the pen code. For example pat. penup() .Incase you were wondering pat is the name of my turtle. Afterwards I got the structure right I started colouring it. Then I started randomising the colours. It looked good but I thought it would be better if instead of the colour changing for every branch it would randomly choose a colour for the whole snowflake.

My final product was a randomly coloured snowflake in a cyan background



Popular Posts