Skip to content

Commit 71b1202

Browse files
algobytewisemertcandav
authored andcommitted
fixed-renaming
1 parent 7bf1d62 commit 71b1202

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphics/mandelbrot.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def get_distance(x: float, y: float, max_step: int) -> float:
2727
constituted by this x-y-pair diverges. Members of the Mandelbrot set do not
2828
diverge so their distance is 1.
2929
30-
>>> getDistance(0, 0, 50)
30+
>>> get_distance(0, 0, 50)
3131
1.0
32-
>>> getDistance(0.5, 0.5, 50)
32+
>>> get_distance(0.5, 0.5, 50)
3333
0.061224489795918366
34-
>>> getDistance(2, 0, 50)
34+
>>> get_distance(2, 0, 50)
3535
0.0
3636
"""
3737
a = x
@@ -118,7 +118,7 @@ def get_image(
118118
figure_x = figure_center_x + (image_x / image_width - 0.5) * figure_width
119119
figure_y = figure_center_y + (image_y / image_height - 0.5) * figure_height
120120

121-
distance = getDistance(figure_x, figure_y, max_step)
121+
distance = get_distance(figure_x, figure_y, max_step)
122122

123123
# color the corresponding pixel based on the selected coloring-function
124124
if use_distance_color_coding:

0 commit comments

Comments
 (0)