nouvelles fractales
This commit is contained in:
parent
013814928c
commit
27b8a76a15
@ -62,7 +62,7 @@ master_doc = 'index'
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
# Usually you set "language" from the command_text line for these cases.
|
||||
language = None
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
|
@ -163,7 +163,6 @@ class Lsystem(ImageDraw.ImageDraw):
|
||||
recursions,
|
||||
color, width)
|
||||
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialisation
|
||||
|
||||
@ -427,7 +426,7 @@ class Figures(ImageDraw.ImageDraw):
|
||||
for i in range(lenght_theoric + 1)]
|
||||
|
||||
if finish[0] == origin[0]:
|
||||
angle = pi/2
|
||||
angle = pi / 2
|
||||
else:
|
||||
angle = atan((finish[1] - origin[1]) / (finish[0] - origin[0]))
|
||||
points = self.rotation(points, (0, 0), angle)
|
||||
@ -486,7 +485,7 @@ class Figures(ImageDraw.ImageDraw):
|
||||
|
||||
length = (((origin[0] - finish[0]) ** 2 + (origin[1] - finish[1]) ** 2) ** 0.5) / 3
|
||||
if finish[0] == origin[0]:
|
||||
angle = pi/2
|
||||
angle = pi / 2
|
||||
else:
|
||||
angle = atan((finish[1] - origin[1]) / (finish[0] - origin[0]))
|
||||
angle_total = angle + pi / 3
|
||||
|
Loading…
Reference in New Issue
Block a user