Set up your sprite to reset your mandala.
At the moment, your mandala patterns may appear to change each time, depending on the parameter values you use. Next, you will create a new my blocks
, so that your mandala sprite always begins in the same state.
Use the
menu to create a new block called My Blocks
setup
. The block should have four parameters: size
, ghost
, y
, and move
. Don’t worry, you can change these or add more later.
When you make the mandala colourful in the next step, the ghost
block will make the colours transparent so when the shapes overlap, you will get a colour mixing effect.
Now add some blocks to set the appearance and position of your sprite.
At the moment, your
hasn’t been used, so there will be no effect on your pattern. Add code to my blocks
setup
, so the code will run as soon as the flag is clicked.
Test your code by clicking on the flag and observing the pattern that has been drawn. Then, change the values of the parameters until you have a pattern that you like.
The sprite (not its clones) is still visible; it can be hidden at the end, but will need to be shown at the start.