Writing code in Scratch for a dilation

Опубликовано: 07 Июнь 2026
на канале: techthings.ca
2,532
12

This is the fourth of a series of tutorials to create an application that will demonstrate three different transformations. For this tutorial, a dilation is performed.

Please see the other tutorials for this series –

Setting up the transformations application:
   • Setting up a simple transformation applica...  
Writing the code for the rotation:
   • Writing code in Scratch for a rotation.  
Writing the code for the translation:
   • Writing code in Scratch for a translation  
Writing the code for the dilation:
   • Writing code in Scratch for a dilation  
Incorporating conditional statements to give the user choice:
   • Adding conditional statements to a transfo...  

Challenge – Change the code to incorporate nested conditional statements and additional variables so that the user can select the values for the rotation, translation x,y coordinates and the dilation factor.

http://LisaAnneFloyd.com/about
[email protected]
@LisaAnneFloyd (Twitter)