scenevr / htmltexture-component

Aframe component for using html as a texture, powered by html2canvas
https://scenevr.github.io/htmltexture-component/
MIT License
48 stars 14 forks source link

Example for transparent background #6

Open iKoala opened 7 years ago

iKoala commented 7 years ago

I am sorry I am new to the canvas world. May I know if I can make the canvas background transparent? It currently has white background which I want it to be transparent.

Thanks for great component to Aframe.

gwcmk commented 7 years ago

@iKoala did you find a way to make the background transparent?

iKoala commented 7 years ago

@gwcmk I couldn't find a solution and finally create the image in PNG format at the server side and send it to the Aframe for rendering.

I actually have another idea to create the image in the HTML5 canvas and then export the image as base64 format and import it to Aframe for rendering. However, i don't have time to create the sample code to test this idea.