Page 70 - 2616_V iCode_C-5
P. 70

Drawing a Rectangle in Scratch

                  To draw a rectangle in Scratch, follow the same code you used to draw a square. In

                  the repeat block, change the values of the Repeat and Motion blocks as shown in the
                  given code.


                  You can also draw a multi-coloured rectangle. To do so, remove the

                  block and place the block                                in the Repeat block. Change the value

                  from 10 to 25. Click on the Go button. Your colourful rectangle appears on the stage.






























                  Drawing a Circle in Scratch

                  To draw a circle, create the given script in Scratch.































                       68    Premium Edition-V
   65   66   67   68   69   70   71   72   73   74   75