Make canvas transparent? #88
Answered
by
vinothpandian
belugawhale3
asked this question in
Q&A
-
I would like to overlay the canvas over a three.js 3D scene and allow users to draw on the 3D scene. Currently I'm setting the zIndex to overlay the canvas, but its default color is white so its opaque and blocks the three.js scene. Would be great to set the canvas to be transparent |
Beta Was this translation helpful? Give feedback.
Answered by
vinothpandian
Oct 17, 2022
Replies: 1 comment 1 reply
-
You can do that by setting the Here is an example: https://codesandbox.io/s/transparent-canvas-mpsj9w?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
belugawhale3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that by setting the
canvasColor
prop totransparent
.Here is an example: https://codesandbox.io/s/transparent-canvas-mpsj9w?file=/src/App.tsx