Click "see inside", edit the numbers in the code that is in the forever loop after reading the comment next to it.
Credits: thanks to @atomicbawm3 for teaching me how to add a hypotenuse into scratch and teaching how pen works. thanks to me for making this project, simplifying it to turn it into a custom block so it will be way easier for you, and sharing it. Notes: you can make way more stuff than you think using this engine (see examples here, https://scratch.mit.edu/projects/444837927/, and here https://scratch.mit.edu/projects/444601314/).