USE TURBO MODE I don't know why, but my brain decided to make a Newton's Cradle in Scratch. It also decided to make it using the pen feature, even though I am not the best at using the pen tool. What is a Newton's Cradle? According to Wikipedia, a Newton's Cradle is a device that demonstrates the conservation of momentum and the conservation of energy with swinging spheres. As for what that means- I honestly don't know. How I made this: I split this project into 3 parts while making this. 1: The swinging motion. You may notice that the balls start by swinging quickly and then slow down. This is not to do with physics- truth be told, I did that by accident. I used the equation r^2=x^2+y^2 (where r is the radius of the circle, and x and why are the x and y coordinates) to work out the y coordinates, with the knowledge of the x coordinates from 0 to 150, as well as knowing that r was 150. This made the ball start of quick and then slow down, as the y coordinates started to get closer to each other. If you don't understand what I just said- you'll learn it in maths. It's Pythag. After I had the basic values the ball would go to, I then just had to make a code to make the ball swing. I started with just 1 ball, with the centre point of the swinging being (0,0). I did the code for that (feel free to look inside to see the code), and then I had the swinging motion finished. 2: Doing the pen work. I actually started the pen work by adjusting the code I had previously made, so it would show a swinging ball on a string, instead of just drawing a semicircle. I then adjusted the code I had made, so it would only be the first half of it, and added the 3 immovable balls, adjusting the code in the swinging ball again, so it would swing on the end of the cradle. I then made the ball on the right, and brought the code I had previously gotten rid of into this ball. I had to use the broadcast block to make the right ball swing after the left ball got back, but after that, I was pretty much done. I added the main frame (the only part to not use pen, but I did end up using the stamp block, just to make it still technically be pen), and then I was done with the pen work. 3: Finishing touches After finishing the hard bit of the code, I simply needed to add a code to check that the user was using turbo mode (I realised while making the code that without using turbo mode, the cradle would go glitchy, since the swinging ball needed to erase everything each time it moved, so that it would work smoothly), do the thumbnail, and then I was done.
Credits to Wikipedia for my description of a Newton's Cradle And credits to whoever made the modern day Newton's Cradle. I looked over the Wiki to find out who made it but I couldn't find it. I may or may not have gotten inspiration for this from the Newton's Cradle in my Dad's office.