Skip to content

Commit

Permalink
Ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
maribedran committed Oct 3, 2024
1 parent ac443f0 commit a6d6347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qrcode/image/styles/colormasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ def apply_mask(self, image):
if current_color in fg_color_cache:
pixels[x, y] = fg_color_cache[current_color]
continue
norm = self.extrap_color(self.back_color, self.paint_color, current_color)
norm = self.extrap_color(
self.back_color, self.paint_color, current_color
)
if norm is not None:
new_color = self.interp_color(
self.get_bg_pixel(image, x, y),
self.get_fg_pixel(image, x, y),
norm
norm,
)
pixels[x, y] = new_color
fg_color_cache[current_color] = new_color
Expand Down

0 comments on commit a6d6347

Please sign in to comment.