Rotate your device.
Turn off orientation lock in device settings.

Immersive Reader

Here's a function called Draw a shape that we've programmed to draw hexagons. Run the code to see what it does and then experiment with the function to see what happens. Can you make it draw a pattern of squares, triangles, or octagons?


Blocks
Workspace
random colorjumpforwardby75pixelsdraw a shapeturnrightby120degreesjumpforwardby25pixelsturnrightby60degreesjumpbackwardby25pixelsrepeat4timesdoset colorturnrightby60degreesjumpforwardby50pixelsturnleftby60degreesjumpbackwardby25pixelsrepeat2timesdorepeat6timesdoset width1when runturnrightby60degreesmoveforwardby25pixelsrepeat6timesdo draw a shape moveforwardby100pixelsjumpforwardby100pixelsturnrightby90degreesturnleftby90degreesset width1repeat???timesdodraw a shapeset colorrandom colorset color