Area of a Circle by Lines

Have a look at this:

images/circle-area-lines.js

A circle becomes a triangle! And the area is:

Unrolled circle forming a triangle with base 2πr and height r
Area =base × height / 2 2πr × r / 2 πr2

Conclusion:

Area of Circle = πr2

Also notice:

Circumference of 2πr  →  Area of πr2

Things to Try

Try a low value for "sides":

Also try increasing the value of "lines" to convince yourself that the lines get closer to filling the whole area.