Giter Site home page Giter Site logo

Comments (4)

foobar404 avatar foobar404 commented on May 26, 2024

I can add an option to Shine in the near future that will offset the bars inwards, Currently it cant be done. The reason the animation gets so large when you change the volume is because none of the animations change based on the size of the canvas right now, v.1 use to do that. That will be reimplemented eventually. If you resize your canvas, you will likely see all of the animation.

from wave.js.

frankykubo avatar frankykubo commented on May 26, 2024

@foobar404

I can add an option to Shine in the near future that will offset the bars inwards, Currently it cant be done. The reason the animation gets so large when you change the volume is because none of the animations change based on the size of the canvas right now, v.1 use to do that. That will be reimplemented eventually. If you resize your canvas, you will likely see all of the animation.

In v 2.0.3 it looks really good on low volume, but if I increase it, it will still blow the lines to sky. Just a question, I looked into the options after update and you didn't yet implemented this option, did you? I cannot make the canvas bigger because of the web design.

from wave.js.

foobar404 avatar foobar404 commented on May 26, 2024

@frankykubo you must be using the CDN link, I just checked and for some reason its not updating. Ill have to look into a new CDN service, but the NPM package is up-to-date, and the dist/bundle.js file is updated, if you want to just download that and include it in your project for the short-term.

from wave.js.

frankykubo avatar frankykubo commented on May 26, 2024

@frankykubo you must be using the CDN link, I just checked and for some reason its not updating. Ill have to look into a new CDN service, but the NPM package is up-to-date, and the dist/bundle.js file is updated, if you want to just download that and include it in your project for the short-term.

@foobar404 I am using npm package within Vue project, so it should be working if its implemented. If it has any value, here is my initialization code:

wave.value = new Wave(audio.value, output.value);
audio.value.addEventListener('canplay', async() => {
    wave.value.addAnimation(new wave.value.animations.Shine({
        rounded: true,
        fillColor: '#009BFF',
        lineColor: '#009BFF',
        lineWidth: 1,
        count: 140,
        diameter: 100,
        frequencyBand: 'mids',
    }));
canvas.value.width = 125;
canvas.value.height = 150;
});

from wave.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.