3D Patterns
Материал из Поле цифровой дидактики
Шаблон:Expand This tutorial explains how to make 3-dimensional patterns in Scratch.
How Does 3D Work in Scratch?
Scratch is mostly intended for 2D projects, but it is possible to create a 3D effect with Scratch. This can be done by projecting a point that uses the dimensions x, y, and z to find its position. To do this, pen blocks and custom blocks have to be used.
Making the Main Script
First of all, make some custom blocks as follows:
Afterwards, make this script,
The script above is the loop that will start everything up in the project.
Getting the Variables Ready
Next, get the variables ready. In the custom block, make this script:
The Reset block will also make a pattern, so it will be useful. Шаблон:Note
Creating the Draw Script
Next, make the code for the custom block. This block will be more complicated.