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

Small fix to p5.js editor example (Random Rhymes) #2

Closed
golanlevin opened this issue Apr 9, 2024 · 1 comment
Closed

Small fix to p5.js editor example (Random Rhymes) #2

golanlevin opened this issue Apr 9, 2024 · 1 comment

Comments

@golanlevin
Copy link

The official Rita.js "Random Rhymes" example currently throws an error (using Rita 3.1.1), TypeError: tmp.join is not a function. This is because the sketch is using the async version of rhymes().

For a quick and perfectly satisfactory fix, change rhymes() to rhymesSync() in line 29. The sketch performs flawlessly thereafter.

Might be a good opportunity to update p5.js to version 1.9.1+ in the index.html, while you're at it.

@dhowe
Copy link
Owner

dhowe commented Apr 9, 2024

much appreciated @golanlevin I seem to have missed those examples when updating to rita-v3
anyhow, updated now (also the p5.js links)

good to hear from you -- let me know if you're doing interesting stuff with rita

@dhowe dhowe closed this as completed Apr 9, 2024
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

2 participants