ScratchData LogoScratchData
Back to papipupepappa's profile

Sine/Cosine & Cardioid

PApapipupepappa•Created May 24, 2021
Sine/Cosine & Cardioid
69
48
547 views
View on Scratch

Instructions

Use the "angle" slider to set the angle of the sine/cosine functions. Click the "Sine" and "Cosine" buttons to show or hide the graph for each of them. Use the "curve factor" slider to bend the graph into a circle, for an interesting result.

Description

This project demonstrates what you get when you use sine and cosine functions (the "sin of ..." and "cos of ..." blocks in Scratch). The value you enter into the blocks is an angle (θ), and the output is a value between -1 and 1. As you will see, sine and cosine produce the same output, but with a 90° offset. The sine/cosine blocks are great for a number of things such as drawing curves, circles and ellipses, and making oscillating or smoothly moving animation. The shape you get when the curve factor is set to 1 is called a cardioid. Learn more about it in this project: https://scratch.mit.edu/projects/414370513/

Project Details

Project ID535345581
CreatedMay 24, 2021
Last ModifiedMay 25, 2021
SharedMay 25, 2021
Visibilityvisible
CommentsAllowed