zhw2590582 / WFPlayer

:ocean: WFPlayer.js is an audio waveform generator
https://wfplayer.js.org
MIT License
265 stars 33 forks source link

Add `waveBorder`, `waveBorderColor`, and `waveBorderWidth` Options #49

Closed zolero closed 1 year ago

zolero commented 1 year ago

Currently, the code includes functionality for drawing rectangles with specified colors. However, there's no option to control whether a border should be drawn around the rectangle, what color the border should be, or how wide the border should be. To enhance the flexibility of the code, we should introduce the following options:

  1. waveBorder: A boolean variable that allows users to enable or disable the drawing of borders around the rectangles.
  2. waveBorderColor: A variable that sets the color of the border (when waveBorder is true).
  3. waveBorderWidth: A variable that sets the width of the border (when waveBorder is true).