|This article has links to websites or programs not trusted by Scratch or hosted by Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites.|
- This article is about the library for building creative computing interfaces. For what blocks are specifically in Scratch, see Blocks. For the plugin used in the Scratch Forums and Wiki, see Block Plugin.
Scratch Blocks is a library of graphical programming blocks for building creative computer interfaces being developed by the Scratch Team in collaboration with Google. Scratch Blocks are designed to enable young people to code their own toys and a wide range of other objects.
Scratch Blocks are designed to support both horizontal blocks (with icons) and vertical blocks (with text). Scratch Blocks are different than blocks in Scratch; Scratch Blocks may be adopted by other programs intended for teaching children to program. Scratch Blocks is licensed under the Apache 2.0 License. The project is in active development and should be considered a "developer preview".
Scratch Blocks are made for use beyond the Scratch online coding environment. Scratch Blocks can be easily implemented into many other programs, with the goal of providing a coding language that more kids can use across devices. The Scratch Team described the purpose behind Scratch Blocks:
|“||Our broader goal is not just to support Scratch itself, but to spread the Scratch approach to coding and learning. And that’s why we’re announcing today a new collaboration with Google, focused on helping other developers create high-quality coding experiences for kids. As a first step, we’re working with Google to develop a new generation of graphical programming blocks, called Scratch Blocks, which we hope will be adopted widely by developers of children’s products. The underlying code for Scratch Blocks will be made available as open source so that developers can easily integrate the blocks into apps, games, and toys that they are creating for kids.||”|
– MIT Scratch Team
Support for Horizontal and Vertical Orientation
ScratchJr also uses blocks that snap together horizontally instead of vertically. Horizontal blocks use icons rather than words to describe their purpose. It is believed this is easier for young children to learn:
|“||Scratch Blocks brings together two different programming “grammars” that we have designed over the past decade. The standard Scratch grammar uses blocks that snap together vertically, much like LEGO bricks. For our ScratchJr software, intended for younger children, we developed blocks that are labeled with icons rather than words, and snap together horizontally rather than vertically. We have found that the horizontal grammar is not only friendlier for beginning programmers but also better suited for devices with small screens (such as mobile devices).||”|
– MIT Scratch Team
The Scratch VM is a virtual machine library for running programs written with Scratch Blocks. It constructs an abstract syntax tree and keeps its state.