Page 90 - Trackpad_V1_Book 4_Flipbook
P. 90

Step  2       Drag a        set pen color to          block into the scripts area.

                  Step  3       Drag a        set to pen size 1   block into the scripts area and change

                              the size to 5.

                  Step  4       Drag a        pen down       block.

                  Step  5       Drag on move 10 steps block and change it to  move 50             steps .

                  Step  6       Now, drag      Change pen color         by 10   block to change the pen colour.

                  Step  7       Then again, move 50 steps by dragging the move 10 steps block and change it
                              to  move 50       steps .

                  Step  8       Change the pen colour again by using the          Change pen color         by 10

                              block.

                  Step  9      At last, move 50 steps by dragging the move 10 steps block and changing

                              the steps to  move 50        steps .
                  Step 10       Click the Green flag at the top right corner of the stage to run your program.



                     when    clicked
                           set pen color to
                           set to pen size 5
                           pen down

                      move 50    steps
                        Change pen color       by 10
                      move 50    steps
                        Change pen color       by 10

                      move 50    steps


                  Drawing A Square

                  Create the following script and click four times on  when        clicked  to draw a square.





                           when   clicked
                                pen down
                                set pen color to

                                set to pen size 5
                           move 50     steps
                           turn     90  degrees




                   88   Trackpad (Version 1.0)-IV
   85   86   87   88   89   90   91   92   93   94   95