Shapes
Last updated
Last updated
Create a 2nd sprite that we will use to draw shapes - it should also be a small circle or square (in any color) that is located on the anchor. Make sure you are making a NEW sprite, not a costume for the previous sprite
Before we can draw on the stage - we have to get the pen and stage ready to draw. Use the same blocks of code as before
Now insert this algorithm to that code. What is drawn?
Add the Yellow Event Block: When the space bar is pressed & then have the sprite move to the center of the stage
When the space bar is pressed - we want this sprite to draw a triangle - use this code. Make sure you understand what controls the length of the sides and what controls the turns. You may prefer your code with a shorter wait time than this picture. Try waiting .1 seconds instead of 1 whole second
Now that we have the basic hexagon - we want to turn this into a more complex drawing that consists of more than one hexagon.
Modify your hexagon drawing code to do the following
Now - play around with some of the pen color, hue, size options and see if you make this even MORE creative
Our Final Shape will be a 3D tube: Create a new event by writing a new algorithm that will start when the 3 key is pressed, clear the screen, go to the middle of the stage and then insert this code
Add the yellow event block: when the H key is pressed When the H key is pressed - we want to clear the stage (pen block) and then go to the center (0,0). Then we want the program to draw a hexagon. If you hexagon is "crooked" consider having it point down before it starts to draw