Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Update Pixelzone decode algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondIceNS committed Jun 17, 2018
1 parent aa5bff7 commit e797414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ async def fetch_pixelzone(x, y, dx, dy):
await asyncio.sleep(0)
for px in range(chunk.width):
i = (py * 512 + px) / 2
color_id = tmp[int(i)] & 15 if i % 1 == 0 else tmp[int(i)] >> 4
color_id = tmp[int(i)] & 15 if i % 1 != 0 else tmp[int(i)] >> 4
color = colors.pixelzone[color_id]
chunk.putpixel((px, py), color)
fetched.paste(chunk, (chk_off.x, chk_off.y, chk_off.x + 512, chk_off.y + 512))
Expand Down

0 comments on commit e797414

Please sign in to comment.