Skip to content

Conversation

@shiriaeva
Copy link

No description provided.

solved errors
functions added
частичное избавление от ручных циклов
добавлено взаимодействие с консолью
filter.py Outdated
def set_grey(arr, midBright, x, y, element_side, step):
for row in range(x, x + element_side):
for col in range(y, y + element_side):
shade_of_grey = int(midBright // step) * step / 3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Раз вынесли в переменную, лучше было ее создать до циклов.

@railbotan
Copy link
Owner

5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants