Content-Length: 195623 | pFad | http://github.com/foobar404/wave.js/issues/98

1C Getting 'infinite loop' with turntable · Issue #98 · foobar404/wave.js · GitHub
Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Getting 'infinite loop' with turntable #98

Open
acroyear opened this issue Feb 24, 2024 · 0 comments
Open

Getting 'infinite loop' with turntable #98

acroyear opened this issue Feb 24, 2024 · 0 comments

Comments

@acroyear
Copy link

let i = 0;
        for (const f of ['base', "lows", "mids", "highs"]) {
            wave.addAnimation(new wave.animations.Turntable({
                frequencyBand: f as "base" | "lows" | "mids" | "highs", // this can't be typed?
                lineWidth: 4 - i,
                lineColor: colors[i],
                fillColor: colors[(i + 2) % 4],
                cubeHeight: 10 * i,
                count: 5 * (4 - i),
                rounded: true,
                glow: { strength: 15, color: colors[i] },
                mirroredX: false,
                diameter: 5
            } as ITurntableOptions));
            i++;
        }

this type of code worked fine for glob, arcs, cube, and wave...but for turntable, i'm getting an infinite loop 100% cpu. any ideas what might trigger that? i'll dig around when i have some free time, but just wondering if you had a suggestion where to look in the source code.

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

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/foobar404/wave.js/issues/98

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy