Skip to content

Commit

Permalink
fixed-renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
algobytewise authored and mertcandav committed Feb 23, 2021
1 parent 7bf1d62 commit 71b1202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions graphics/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def get_distance(x: float, y: float, max_step: int) -> float:
constituted by this x-y-pair diverges. Members of the Mandelbrot set do not
diverge so their distance is 1.
>>> getDistance(0, 0, 50)
>>> get_distance(0, 0, 50)
1.0
>>> getDistance(0.5, 0.5, 50)
>>> get_distance(0.5, 0.5, 50)
0.061224489795918366
>>> getDistance(2, 0, 50)
>>> get_distance(2, 0, 50)
0.0
"""
a = x
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_image(
figure_x = figure_center_x + (image_x / image_width - 0.5) * figure_width
figure_y = figure_center_y + (image_y / image_height - 0.5) * figure_height

distance = getDistance(figure_x, figure_y, max_step)
distance = get_distance(figure_x, figure_y, max_step)

# color the corresponding pixel based on the selected coloring-function
if use_distance_color_coding:
Expand Down

0 comments on commit 71b1202

Please sign in to comment.