Lesson 1 of 0
In Progress

Drawing an Illusion

Activity: Drawing an Illusion

Activity: Drawing an Illusion

Step 1: Import the Pen sprite and set the backdrop.

Step 1

Step 2: Drag Erase all and pen up from pen extension pallete and drop in the scripting area.

Step 2

Step 3: Make a variable length in variable Block palette.

Step 3

Step 4: Drag set length to (0) from variable palette and drop it below pen up.

Step 4

Step 5: Drag go to x:(0) y:(0) block from motion palette and drop below set length to (0).

Step 6: Now drag pen down, set pen color to 0, set pen size to 2 from pen extension and drop it after go to x:(0) y:(0) one after another respectively.

Step 7: Drag the repeat block and change the value to 100 and drop it below The set pen size to 2 block.

Step 8: Drag the move() steps block from motion palette and and place the length variable inside it and drop it inside the repeat block.

Step 9: Drag the change length by (1) block from variable palette and change the value to 4 and place below the move() steps.

Step 10: Drag turn right () degree and place the value 90 inside it and drop it below change length by (4) block.

Step 11: Drag change pen color by (10)and drop it below turn right (90) degree.

Note: Every block from step 8 to step 11 must be inside repeat (100) block.

Complete Script
Output

Conclusion: In the above activity we learned about how to draw an illusion.