mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8 * Fix some tests * Fix some E741 * Fix some E741 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -54,9 +54,9 @@ class Burkes:
|
||||
current_error = greyscale + self.error_table[x][y] - 255
|
||||
"""
|
||||
Burkes error propagation (`*` is current pixel):
|
||||
|
||||
* 8/32 4/32
|
||||
2/32 4/32 8/32 4/32 2/32
|
||||
|
||||
* 8/32 4/32
|
||||
2/32 4/32 8/32 4/32 2/32
|
||||
"""
|
||||
self.error_table[y][x + 1] += int(8 / 32 * current_error)
|
||||
self.error_table[y][x + 2] += int(4 / 32 * current_error)
|
||||
|
Reference in New Issue
Block a user