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

How to set custom func parameters when type=canvas #159

Open
z411500976 opened this issue Nov 4, 2021 · 0 comments
Open

How to set custom func parameters when type=canvas #159

z411500976 opened this issue Nov 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@z411500976
Copy link

How to set custom func parameters when type=canvas
async function funcCanvas({ width, height, canvas}) { const image = await loadImage('./assets_my/IMG_4870.jpg') function onRender(progress) { } function onClose() { // Cleanup if you initialized anything } return { onRender, onClose }; }
For example, I want to customize the path of the picture
Thanks!

@bkeepers bkeepers added the bug Something isn't working label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants