Transforming a proof into blocks – part 2
Now that we have decomposed the text of a demonstration in order to reduce the amount of types, let’s work on the software Arrasta o X.
Start by opening the following link: https://scratch.mit.edu/projects/723926143/editor
This is a template for creating demos, so any edits you make won’t change the original file. To make your changes stick, you can log into your Scratch account and create a REMIX of the current version (this will make a copy of it in your project folder), or if you have version 3.0 editing software installed on your computer, you you can download the file in .sb3 format and edit it offline (your choice).
Our next step is to create blocks :3
Open the “costumes” option of the “parts” actor. You will see on the left side of the screen a list with 4 parts. The colors of the pieces and the letters used in them were chosen for better distinction by people with color blindness, so it’s interesting that you don’t change these colors. When you need more than one part of a type, right click on it and duplicate it.
So, let’s take our decomposed demonstration and make a block for each of the 23 types of text segment, respecting the margin of the pieces and their colors according to the function of the piece.
After creating the blocks, go back to this actor’s part of the code, and change the value highlighted in the image below to the number of parts created minus 1 (in my case, I created 23 parts, so 23 – 1 = 22).
Done, now you can save your code and when you run it, it will generate on screen all the necessary blocks to form the original demonstration.
A good step now is to test how we can assemble our demo with these pieces to see how well it fits on the screen and also to find out if there are any mistakes that we missed in the previous step (to duplicate a piece, drag it to the second icon from left to right in the lower right corner of the screen).
Looking at the arrangement on the screen, it looks cool, except for the last block, the content was too small to be read easily. I’m going to edit this by changing the content of the last two blocks (hence the importance of testing the interaction with the blocks):
← parte 1
parte 3 →
Cover image adapted from the meme known as “sayori drake meme”