Circle Using Scratch
Polar Form of a Circle :
The polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a fixed point and an angle from a fixed direction. Keeping the radius as constant value(as the radius of the circle of the cant change), the angle keeps on varying until the circle is complete.
Here, we have a circle with radius r.
Along the x- axis it is r cos angle and along the y-axis it is r sin angle.
x : r cos angle
y : r sin angle
Circle moved along the axis with radius r :
Three circles are shown in the figure.
Each circle has a radius of r(defined by the user).
Center Circle :
The circle at the center has origin of (0,0) and by using the polar form method a simple circle can be drawn by defining the radius r and the angle.
x = r cos angle
y = r sin angle
Circle on the top :
The circle on the top is along y axis. The origin of this circle is at the edge of the center circle on the y axis. So,the equation of this circle is
x = r cos angle
y = r+r sin angle
Circle on the right :
The circle on the right is along x axis. The origin of this circle is at the edge of the center circle on the x axis. So,the equation of this circle is
x = r+r cos angle
y = r sin angle
Drawing a Circle in Scratch using the Trigonometric Formula :
There are number ways to draw a circle in Scratch. Lets have a look at how to draw a circle using the Trigonometric formula(Polar form).
Simple way to make a circle is to use the Motion Scripts and to use the Move keys and angle (360 degree) etc..
Create Variables :
Example ,
Radius, r = 50
Sides( the more no of sides you put, the more it will look like a circle) = 80
Angle_step(to make it move in small angles) = 360/ sides
Angle = 0 degree
Use the Motion script to tell Scartch where you want to start the circle.
Here it is :
In the Loop :
Change the angle by the angle step( so that the angle changes everytime)
Use the formula :
x : r cos angle
y : r sin angle
Author
prathap7618@gmail.com
Related Posts
STEMland youths excel in CII PUDUCHERRY INNOVATION CONTEST 2022
The Confederation of Indian Industry (CII) works to create and sustain an environment conducive to the growth of the industry in India, partnering with...
Read out allSri Aurobindo 150th celebration talks with Aurovilians: Sanjeev
As part of the 150th Sri Aurobindo’s birth Anniversary, On the 24th of August 2022, Dr.Sanjeev Ranganathan had a live talk with...
Read out allSET Theory Game
A set is a collection of objects or groups of objects. These objects are often called elements or members of a set....
Read out allBHARATHA TIRTHA II- International conference on Indian knowledge systems by IIT Kharagpur.
BHARATHA TIRTHA II- International conference on Indian knowledge systems was organized by IIT Kharagpur. Dr. Sanjeev Ranganathan, founder of STEMLAND was invited...
Read out allA Session with Mr. Thiyaragaraja Kumar
An enthusiast researcher Mr. Thiyaragaraja Kumar visited STEM land on 20th June 2022 to exhibit the projects made by him and to...
Read out allA visit to AUROVILLE INSTITUTE OF APPLIED TECHNOLOGY
On 13th May 2022, our C3Streamland team visited AIAT as a part of the BVOC program. The team was led by Dr....
Read out all