Skip to content

Commit

Permalink
Ran formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaythebusinessgoose committed Jan 12, 2025
1 parent eba3077 commit 7b8afc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modlunky2/ui/levels/shared/level_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,11 @@ def draw_background(self, theme, subtheme):
if not cosmos_bg:
img = Image.open(BASE_DIR / "static/images/cosmos.png").convert("RGBA")
img = img.resize(
(round(1194 * self.zoom_level / 30), round(697 * self.zoom_level / 30)), Image.BILINEAR
(
round(1194 * self.zoom_level / 30),
round(697 * self.zoom_level / 30),
),
Image.BILINEAR,
)
enhancer = ImageEnhance.Brightness(img)
im_output = enhancer.enhance(1.0)
Expand All @@ -586,7 +590,8 @@ def draw_background(self, theme, subtheme):
for x in range(0, 1 + int(math.ceil(self.width / 10 / 4))):
for y in range(0, 1 + int(math.ceil(self.height / 8 / 3))):
self.create_image(
x * self.zoom_level * 10 * 4 - (((y ^ 8) * 8) % 30) * self.zoom_level,
x * self.zoom_level * 10 * 4
- (((y ^ 8) * 8) % 30) * self.zoom_level,
y * self.zoom_level * 8 * 3,
image=cosmos_bg,
anchor="nw",
Expand Down

0 comments on commit 7b8afc1

Please sign in to comment.