Closed scottcheng closed 9 years ago
Thanks @geon
The prop is true/false since it is also used as an option when creating the GL context to enable alpha on the canvas. We can add an 'alpha' prop to override the default 0 or 1 behavior if you need it, but I think we should still require the user to explicitly enable canvas transparency with a transparency={true}
flag.
Thanks @geon! This looks great.
Thanks @Izzimach for the explanation -- I was just curious and didn't really need the alpha. :)
With this line of code, it only sets background color when
this.props.transparent
is truthy, which seems odd to me. The proptransparent
actually meansopaque
.On a relevant note, why don't we just have an
alpha
prop and pass it directly tosetClearColor
, without coercing it to 1 or 0?