Page 110 - 2611_SmartGPT Pro V(5.0) C-4
P. 110

Blocks                                           Functions



                                                                 It modifies the thickness of the pen. You can

                          Change pen by  1                       also change the thickness  by writing the
                                                                 desired number in the number box, number 1
                                                                 being the least thick.


                          stamp                                  It draws or stamps the image of a sprite onto
                                                                 the stage.

                          erase all                              It erases the pen marks from the stage.




                  Drawing a Line

                  To draw a line, follow the given steps:

                  Step  1    Drag a  when     clicked   block to the scripts area from the Events menu.

                  Step  2    Drag a       set pen color to     block into the scripts area.
                  Step  3    Drag a       set pen size to 5   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 pen size to 5
                                     pen down
                                move 50   steps
                                   Change pen color   by 10
                                move 50   steps
                                   Change pen color   by 10
                                move 50   steps




                  108   Computer Science (V5.0)-IV
   105   106   107   108   109   110   111   112   113   114   115