#100daysblockcodingchallenge||Day2: Fractals Using Polygons
Day2:Fractals Using Polygons
Polygons:
A plane figure with at least three straight sides and angles are said to be polygons.
Polygons are usually closed and 2-d figure.
Examples: Triangles, Square, pentagon etc.,
Fractals :
A complicated pattern in mathematics built from simple repeated shapes that are reduced in size every time they are repeated.
--Cambridge Dictionary
Fractals
- Interior angles of any polygon is equal to 360 degree
- For regular polygons all the sides and angles are equal
- To find angle of any one side divide 360 by number of sides in the polygon
- For example sides:4 for square 360/4=90 degree. Each angle in the square is 90 degree.
- Change the angle and draw the polygon multiple times to get fractal.
Block Based Coding:
Output:
If side=8
Comments
Post a Comment