Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rounding on lines doesn't work properly #85

Open
ErikSandquist opened this issue Apr 19, 2023 · 1 comment
Open

Rounding on lines doesn't work properly #85

ErikSandquist opened this issue Apr 19, 2023 · 1 comment

Comments

@ErikSandquist
Copy link

image
When the lines are inactive they are rounded to a circle, but when extended they lose the rounded corners and return to hard lines.

Here is my code:

let audioElement: HTMLAudioElement | null = document.querySelector('#audio');
let canvasElement: HTMLCanvasElement | null = document.querySelector('#canvas');
if (audioElement && canvasElement) {
	let wave = new Wave(audioElement, canvasElement, true);

		wave.addAnimation(
			new wave.animations.Lines({
				lineWidth: 3,
				lineColor: 'white',
				count: 100,
				rounded: true,
				center: true,
				mirroredY: true
				})
			);
		}
@foobar404
Copy link
Owner

@ErikSandquist Sorry for the late reply, I will try to take a look at this in the near future, or if you have found a fix, feel free to submit a pull request.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants