Skip to content

Commit

Permalink
Re-add --white background argument to maintain backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Oct 2, 2023
1 parent 7faf5bc commit 9d048fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ By default, outputs to `out.mp4`. Available options:

```bash
usage: seewav [-h] [-r RATE] [--stereo] [-c COLOR] [-c2 COLOR2] [-o OPACITY]
[-B BARS] [-O OVERSAMPLE] [-C COORDS] [-b COLOR] [-i IMAGE]
[-B BARS] [-O OVERSAMPLE] [-C COORDS] [-b COLOR] [--white] [-i IMAGE]
[-T TIME] [-S SPEED] [-W WIDTH] [-H HEIGHT] [-s SEEK] [-d DURATION]
audio [out]

Expand All @@ -50,6 +50,7 @@ optional arguments:
stereo).
-o OPACITY The opacity of the waveform on the background.
-b COLOR Set background color. Default is black.
--white Legacy toggle to use white background.
-i IMAGE Set background image.
-C COORDS Set the center of the bars relative to the image if used.
-B BARS, --bars BARS Number of bars on the video at once
Expand Down
4 changes: 3 additions & 1 deletion seewav.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def main():
type=parse_color,
dest="background",
help="Set the background. r,g,b` in [0, 1]. Default is black (0,0,0).")
parser.add_argument("--white", action="store_true",
help="Use white background. Default is black.")
parser.add_argument("-i",
"--image",
dest="image",
Expand Down Expand Up @@ -395,7 +397,7 @@ def main():
fg_color=args.color,
fg_color2=args.color2,
fg_opacity=args.opacity,
bg_color=args.background,
bg_color=[1.] * 3 if bool(args.white) else args.background,
bg_image=args.image,
center=args.center,
size=(args.width, args.height),
Expand Down

0 comments on commit 9d048fc

Please sign in to comment.