Change indentation to spaces
This commit is contained in:
parent
f0b9eaa0c3
commit
5706ccf986
|
@ -0,0 +1,9 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
|
@ -510,5 +510,5 @@ def init_101_monochrome():
|
||||||
curses.init_pair(99, 0, 99)
|
curses.init_pair(99, 0, 99)
|
||||||
curses.init_pair(100, 0, 100)
|
curses.init_pair(100, 0, 100)
|
||||||
curses.init_pair(101, 81, 2)
|
curses.init_pair(101, 81, 2)
|
||||||
return 101
|
|
||||||
|
|
||||||
|
return 101
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# Distributed under terms of the BSD-3-Clause license.
|
# Distributed under terms of the BSD-3-Clause license.
|
||||||
|
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np # type: ignore
|
||||||
import curses
|
import curses
|
||||||
|
|
||||||
import colors
|
import colors
|
||||||
|
@ -39,6 +39,7 @@ def calculate_point(x, y):
|
||||||
p = (x - 0.25) ** 2 + y ** 2
|
p = (x - 0.25) ** 2 + y ** 2
|
||||||
if p * (p + (x - 0.25)) < 0.25 * (y ** 2):
|
if p * (p + (x - 0.25)) < 0.25 * (y ** 2):
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
if (x + 1) ** 2 + y ** 2 <= 0.0625:
|
if (x + 1) ** 2 + y ** 2 <= 0.0625:
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
|
@ -75,7 +76,12 @@ def print_set(screen, cols, rows, matrix, char):
|
||||||
color_index = 2 if color_index < 2 else color_index
|
color_index = 2 if color_index < 2 else color_index
|
||||||
screen.addstr(i, j, ' ', curses.color_pair(color_index))
|
screen.addstr(i, j, ' ', curses.color_pair(color_index))
|
||||||
|
|
||||||
screen.addstr(rows, 0, f'Max Iterations: {MAX_ITERS}, Zoom: {ZOOM_LEVEL}, Iterations: {ITERATIONS}, Char: {char}', curses.color_pair(COLOR_COUNT))
|
screen.addstr(
|
||||||
|
rows,
|
||||||
|
0,
|
||||||
|
f'Max Iterations: {MAX_ITERS}, Zoom: {ZOOM_LEVEL}',
|
||||||
|
curses.color_pair(COLOR_COUNT),
|
||||||
|
)
|
||||||
screen.refresh()
|
screen.refresh()
|
||||||
|
|
||||||
|
|
||||||
|
@ -144,4 +150,3 @@ def main(screen):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
curses.wrapper(main)
|
curses.wrapper(main)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue