Skip to content

Commit 8302bf9

Browse files
authored
Update autosort.py
1 parent 4b04e4a commit 8302bf9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

auto_pixelsort/autosort.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from PIL import Image
66
from pixelsort import pixelsort
77

8+
89
def randomize_params():
910
angle = r.randint(90, 359)
1011

@@ -55,19 +56,21 @@ def randomize_params():
5556
args['lower_threshold'] -= 0.25
5657
return args
5758

59+
5860
def perform_sorting(args, img):
5961
# --- PERFORM PIXELSORT WITH RANDOMIZED PARAMS ---
6062
new_img = pixelsort(
61-
image = img,
62-
angle = args['angle'],
63-
interval_function = args['interval_function'],
64-
lower_threshold = args['lower_threshold'],
65-
upper_threshold = args['upper_threshold'],
66-
randomness = args['randomness'],
67-
sorting_function = args['sorting_function']
63+
image=img,
64+
angle=args['angle'],
65+
interval_function=args['interval_function'],
66+
lower_threshold=args['lower_threshold'],
67+
upper_threshold=args['upper_threshold'],
68+
randomness=args['randomness'],
69+
sorting_function=args['sorting_function']
6870
)
6971
return new_img
7072

73+
7174
def Main():
7275
# --- DEFINE ARGS AND SET DEFAULTS ---
7376
count = 0

0 commit comments

Comments
 (0)