Skip to content

Commit

Permalink
refactor: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 10, 2023
1 parent 3d74ece commit 19c5904
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/modules/sbstudio/plugin/utils/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ def get_pixel(image, x: int, y: int) -> RGBAColor:
return image.pixels[offs : offs + 4]


def set_pixel(image, x: int, y: int, color: RGBAColor):
"""Sets a given pixel of an image to a given color.
Note that this function is very slow, if possible,
use the image.pixels.foreach_set() function instead.
"""
width = image.size[0]
offs = (x + int(y * width)) * 4
image.pixels[offs : offs + 4] = color


def update_image_from(target, source) -> None:
"""Updates an image from another image.
Expand Down

0 comments on commit 19c5904

Please sign in to comment.