From 89ff0fcaa779ace6e1035b73ed98b38bb97fbba5 Mon Sep 17 00:00:00 2001 From: Vivek Gupta Date: Mon, 11 Dec 2017 12:03:08 +0530 Subject: [PATCH] added Koch Curve doc on project page --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index d0abc4e..328ec1a 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ We are glad to partner with IIT Kharagpur as a part of the Kharagpur Winter of C * [Inception Tic-Tac-Toe](https://github.com/prateekiiest/Code-Sleep-Python#inception-tic-tac-toe) * [Sprint](https://github.com/prateekiiest/Code-Sleep-Python#sprint) * [Floating Text](#floating-text) +* [Koch Curve](https://github.com/prateekiiest/Code-Sleep-Python#Koch-Curve) ---------------------------------- @@ -193,6 +194,18 @@ Floating Text is a simple program which displays a given String as a floating st ---------------------------------------------------- +### Koch Curve + +A Fractal is geometrical figure, each part of which has the same statistical character as the whole. Koch Curve (also known as the **Koch snowflake**) is a mathematical fractal curve constructed recursively using an equilateral triangle (See figure). The progression for the area of the snowflake converges to 1.6 times the area of the original triangle, while the progression for the snowflake's perimeter diverges to infinity. Consequently, the snowflake has a finite area bounded by an infinitely long line. **[more info](https://en.wikipedia.org/wiki/Koch_snowflake)** + +This program traces out a 4 level Koch curve. + +![](https://upload.wikimedia.org/wikipedia/commons/f/fd/Von_Koch_curve.gif) + +**[CODE](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Koch%20Curve/koch%20curve.py)** + +---------------------------------------------------- + ## Getting started with Python New to Python? No problem! Take a look at the following resources: