Fractals : Von Koch snowflake
|
12-11-2013, 11:08 PM
(This post was last modified: 12-22-2013 07:58 AM by Damien.)
Post: #1
|
|||
|
|||
Fractals : Von Koch snowflake
Hi everyone,
This small program draws some simple fractals. The K parameter controls the curve complexity. Change K value from 0 (3 segments drawn), to 6 (12288 segments drawn). Code:
Now if you want the fractal to grow inside the triangle replace the line: Code: x:={0,NP,NP/2,NP} Code: x:={NP,0,NP/2,NP} For something a little different, you can remplace the init parameters with: Code:
Code:
or Code:
Or (added 15/12/2013) Code:
(added 16/12/2013) Now lets try to cut corners. The segments drawing will now be replaced by arcs of ellipse. The basic program is the same, with only the addition of few extra lines of code. The S parameter controls the smoothness of the rounding, the K parameter controls the complexity degree of the curve. Code:
(added 18/12/13) Lets change some init parameters like so: Code:
Cheers, Damien. |
|||
12-14-2013, 09:03 PM
Post: #2
|
|||
|
|||
RE: Fractales : Von Koch snowflake
Downloading......
Thanks! |
|||
12-14-2013, 11:01 PM
(This post was last modified: 12-18-2013 10:15 PM by Damien.)
Post: #3
|
|||
|
|||
RE: Fractals : Von Koch snowflake
You're welcome ! Have Fun !
regards, Damien. |
|||
12-15-2013, 06:14 PM
Post: #4
|
|||
|
|||
RE: Fractales : Von Koch snowflake
Nice work !
http://mic.nic.free.fr - Youtube - Facebook |
|||
12-15-2013, 07:07 PM
(This post was last modified: 12-18-2013 10:16 PM by Damien.)
Post: #5
|
|||
|
|||
RE: Fractals : Von Koch snowflake
And more to come very soon!
Cheers, Damien. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)