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

Possible to use canvas as texture? #7

Closed
iamryanyu opened this issue Sep 21, 2018 · 4 comments
Closed

Possible to use canvas as texture? #7

iamryanyu opened this issue Sep 21, 2018 · 4 comments

Comments

@iamryanyu
Copy link

First of all, thanks so much for this great library!

At the moment, this library allows us to use an image or video as a texture, but I am wondering if there is any way I can use a canvas as a texture?

Many thanks in advance!

@martinlaxenaire
Copy link
Owner

Hi @iamryanyu,

unfortunately, it isn't possible to use canvas as textures yet, however it is on top on my todo list.
I'll let you know when I'll have time to work on it.

Thanks,

@iamryanyu
Copy link
Author

Awesome, looking forward to it! 👍

@martinlaxenaire
Copy link
Owner

martinlaxenaire commented Oct 9, 2018

Hi @iamryanyu,

I've just pushed an update that lets you use canvas as texture, either by inserting a tag inside your plane HTML element or by using a loadCanvases() method.

Here is a working example: https://www.curtainsjs.com/examples/simple-canvas-plane/index.html

Thanks,

@iamryanyu
Copy link
Author

Wow that's great, thanks for your hard work!

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