ScratchData LogoScratchData
Back to crkcity's profile

sine

CRcrkcity•Created June 23, 2021
sine
1
0
22 views
View on Scratch

Instructions

Click flag. The sine function, in its simplest form, goes back and forth in a line, slowing down before it turns back in the other direction, simply: sine (time) From this sine motion we derive the circle and the sine wave.

Description

One sprite just goes up and down on the Y axis. The code is sine (degrees, which changes with time).This is the motion of bouncing spring. Another sprite goes sideways on the X axis (really it is a cosine that we expressed as a sine), as seen in a simple pendulum. Really it is the same as the sine motion of a spring. A third sprite (red) matches the X and Y coordinates of the first two sprites resulting in a circle. A fourth sprite (yellow) matches the Y coordinate and moves forward a distance of pi times the total height (also the circle's diameter), the same as the circle's circumference. Note we don't start with the circle, but with the simpler sine components.

Project Details

Project ID547552374
CreatedJune 23, 2021
Last ModifiedJuly 18, 2021
SharedJune 27, 2021
Visibilityvisible
CommentsAllowed