For a third of this term with Mrs Watson we are going to be 3D printing different patterns and shapes.
I programmed the beetle to repeat the following code 4 times ‘go forward 1 space turn 90 degrees’ and that will make it go in square; However, the beetle only moves in a square it doesn’t trace it, so we get a start extruding lines block. Extruding because it has to be 3D and lines because the only other option is curves and then it just looks like a squircle.
I programmed the dodecagon to repeat the code the same amount of times as the amount of sides the shape has. It is the same as the square except the turn block which is 36 not 90. I didn’t use a green operator block, I just used the calculator on my computer because I didn’t know what the block did due to the odd sign ( / ). I also found the color block and that’s why the shape is pink!
I don’t need to explain the nonagon that much as its the same as the others just changing the turn again but you also need to set the repeat block to the amount of signs. this doesn’t matter as much though when you are just looking at it but when it prints is will confuse the printer.
The tower was not extremely hard but not very easy because you had to start and stop extruding lines a lot and you have to play around with the X, Y and Z axes a little too. I chose a heptagon because I found it the easiest shape to code. I also used 2 of the green operator block we mentioned before.
I like my rotational pattern because I think it looks cool and it looks like a pattern I did when I was little on a drawing app.
Hexagon on the X axis.
This shape is almost the same as my pattern, except instead of rotating z by 360/6, we rotate x by the distance each hepatgon is apart, in this case it’s 15. Therefore we divide 360 by 15 so that the beatle will stop once it has completed the last heptagon in the shape.
The differences between Beetle Blocks and Turtle Art are :
- Beetle blocks is 3D and Turtle Art is 2D
- Beetle Blocks also has the Z coordinate and Turtle Art just has X and Y coordinates
- Beetle blocks can 3D print and Turtle Art can’t.
- Beetle Blocks has a shapes option and Turtle Art does not.
The similarities between Beetle Blocks and Turtle Art are:
- They both use block based code and the code looks relatively similar.
- They both have fast ways of getting to certain blocks.
- They both have a little avatar (turtle, beetle).
Here is one of my Beetle Blocks polygons recreated in Turtle Art:
This was relatively easy to create because all I had to do was copy the code from Beetle Blocks onto Turtle Art.
I used Turtle Art to make my rotational design that I originally made on Beetle Blocks using my polygon.
Changing the size and colour.
Changing the size in Turtle Art will make the line that the turtle is drawing a little bit thicker. These are some photos of making the line thicker:
In the photos I only added ten, but as you can see it actually makes the lines a lot bigger so be careful with your adjustments.
Changing the colour in Turtle Art is easy. To get the exact colour you want is a bit tricky so I have added a colour chart below.
You may notice that 0 and 99 are the same colour, that’s because if we looped this into a circle then 0 and 99 will be next to each other; therefore, they have to be the same colour so that the circle works. Red and aqua are also opposite colours, so in the circle they would be on either side.
In the photos below there are 2 different ways of changing the colour, that I know of. Sorry if I don’t know one.
The other way of changing a colour that I know of, is by getting a number, then adding another number to it to equal a number. These cannot add up to over 100, or the colour chain will be broken. Here is a photo
Rotational symmetry drawing
Here is a screen snip of my rotational design. It demonstrates different pen sizes and different colours.
- I created this design by simply getting an arc block and then making an s.
- Next I made the line thicker so that it formed a thick s.
- Each step I made the line a little bit thinner and changed the colour by 10.
- Then I got the yellow diamond shape block so that it would be easier to use the repeat block.
- Then I got the turtle right block and used a number block so that I could get the code to divide a sum for me. The sum was 360/6
- Finally I put the turtle right block and the little yellow block that the diamond created into a repeat to divide by 6 because the sum was 360/6 therefore whatever we divided 360 by, we want to repeat that amount of times so that the 6’s relate to make a rotational design that has 6 s’