diff --git a/build/html/.buildinfo b/build/html/.buildinfo
index 60d228d..2714306 100644
--- a/build/html/.buildinfo
+++ b/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 1a3b24070ba53928892a465c563d0d87
+config: 6503ce9f5e6eec67abfd009961ce08a9
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/build/html/_modules/index.html b/build/html/_modules/index.html
index 96220fe..750aabb 100644
--- a/build/html/_modules/index.html
+++ b/build/html/_modules/index.html
@@ -25,17 +25,24 @@
+
-
-
-
+
+
+
+
+
+
+
+
-
[docs]defvon_koch_curve_flake(self,origin,radius,iterations,angle=0,color=None,width=0):
- """Draw thee von koch flake on image.
+ """Draw the von koch flake on image. :param origin: coordinate of the center of circumscribed circle of main triangle :param radius: radius of circumscribed circle of main triangle
@@ -474,7 +623,7 @@
returnint(value[0]),int(value[1])
[docs]defvon_koch_curve(self,origin,finish,iterations=1,color=None,width=0):
- """Draw thee von koch flake on image.
+ """Draw the von koch curve on image. :param origin: coordinate of the starting point :param finish: coordinate of the ending point
@@ -490,7 +639,10 @@
two_third=origin[0]+(finish[0]-origin[0])*2/3,origin[1]+(finish[1]-origin[1])*2/3length=(((origin[0]-finish[0])**2+(origin[1]-finish[1])**2)**0.5)/3
- angle=atan((finish[1]-origin[1])/(finish[0]-origin[0]))
+ iffinish[0]==origin[0]:
+ angle=pi/2
+ else:
+ angle=atan((finish[1]-origin[1])/(finish[0]-origin[0]))angle_total=angle+pi/3iforigin[0]>finish[0]:angle_total+=pi
@@ -509,38 +661,15 @@
img=Image.new('RGB',(5000,5000),(255,255,255))"""figures = Figures(im=img) figures.blanc_manger((2000, 2000), (3000, 3000), 7, color=(0, 0, 0), width=2)"""
- figures=Lsystem(im=img)
- figures.state.x,figures.state.y=4000,4000
-
- figures.draw_l("F",{"F":"F+F-F",},
-
- {"+":figures.left(pi*2/3),'-':figures.right(pi*2/3),
- "F":figures.forward(50),},7,
-
- (255,0,0),2)
-
- figures._left(2*pi/3)
-
- figures.draw_l("F",{"F":"F+F-F",},
-
- {"+":figures.left(pi*2/3),'-':figures.right(pi*2/3),
- "F":figures.forward(50),},7,
-
- (0,255,0,2))
-
- figures._left(2*pi/3)
-
- figures.draw_l("F",{"F":"F+F-F",},
-
- {"+":figures.left(pi*2/3),'-':figures.right(pi*2/3),
- "F":figures.forward(50),},7,
-
- (0,0,255),2)
+ figures=Figures(im=img)
+ figures.blanc_manger((1000,2500),(4000,2500),5,color=(0,0,0),width=3)img.save("D:\\Users\\louis chauvet\\Documents\\GitHub\\fractale\\test.bmp")
- Built with Sphinx using a theme provided by Read the Docs.
+ Built with Sphinx using a theme provided by Read the Docs.
@@ -594,7 +725,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.0.1',
- LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
@@ -604,7 +734,7 @@
-
+
@@ -613,11 +743,14 @@
+
+
+
+
\ No newline at end of file
diff --git a/build/html/genindex.html b/build/html/genindex.html
index cec9198..75afa48 100644
--- a/build/html/genindex.html
+++ b/build/html/genindex.html
@@ -26,17 +26,24 @@
+
-
-
-
+
+
+
+
+
+
+
+
-
+