File:Kochpy2.svg

Summary

Description
Français : Dessin du triangle de Von Koch
Date 1 January 2012 (original upload date)
Source Own work
Author Alain Busser at French Wikibooks
SVG development
InfoField

Source code

Made with this Python script:

from turtle import *
from re import *
 
programme='AmAmAm'
 
for n in range(4):
    programme=sub('A','ApAmApA',programme)
 
programme=sub('A','fd(2); ',programme)
programme=sub('m','rt(120); ',programme)
programme=sub('p','lt(60); ',programme)
exec(programme)

Licensing

Alain Busser at French Wikibooks, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you alter, transform, or build upon this work, you must distribute the resulting work under the same license as the original.
Category:CC-BY-SA-1.0#Kochpy2.svg
Category:Self-published work

Original upload log

The original description page was here. All following user names refer to fr.wikibooks.
Date/TimeDimensionsUserComment
2012-01-01 16:26322×352 (12819 bytes)Alain BusserMade with this Python script: <syntaxhighlight copy line lang="python"> from turtle import * from re import * programme='AmAmAm' for n in range(4): programme=sub('A','ApAmApA',programme) programme=sub('A','fd(2); ',programme) programme=sub('m','rt(120); ',program
Category:Koch snowflakes Category:Programmation objet et géométrie Category:SVG fractals
Category:CC-BY-SA-1.0 Category:Koch snowflakes Category:Programmation objet et géométrie Category:SVG created also with Inkscape Category:SVG fractals Category:Self-published work Category:Valid SVG created with Python