Skip to content

Commit

Permalink
Untracked changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baltdev committed Dec 10, 2024
1 parent 202da87 commit a500489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
logging_color = 0xffffff
auth_file = "config/auth.json"
log_file = "log.txt"
db_path = "robot.db"
db_path = "robot.db.trees"
cogs = [
"src.cogs.owner",
"src.cogs.global",
Expand Down
2 changes: 2 additions & 0 deletions src/cogs/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@ async def scan(sprite, axis: Literal["x", "y"], on: Optional[int] = 1, off: Opti
"""Removes rows or columns of pixels to create a scan line effect."""
assert on >= 0 and off >= 0 and on + off > 0, f"Scan mask of `{on}` on and `{off}` off is invalid!"
axis = ("y", "x").index(axis)
on = min(on, sprite.shape[axis])
off = min(off, sprite.shape[axis])
mask = np.roll(np.array([1] * on + [0] * off, dtype=np.uint8), offset)
mask = np.tile(mask, (
sprite.shape[1 - axis],
Expand Down

0 comments on commit a500489

Please sign in to comment.