You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Background color does not accept all valid CSS strings #182
Tried with background: linear-gradient(#e66465, #9198e5);, radial-gradient(#e66465, #9198e5) & transparent
Suggested resolution
For transparent load the underlying Three context with {alpha: true} add a console.warn() noting that setting the alpha of the underlying will potentially impact performance
You totally called our bluff on 'all valid CSS strings', Andres 😬 we should update that in the docs to specify that it accepts the subset of <color> strings supported by THREE.Color#setStyle. Although it doesn't seem too outrageous to parse out gradients, I wonder if there's some combo of specifying a set of colors and generating something like #66 (for that blurry effect commonly used, e.g. #181)
Are there any blockers to making a new transparent attribute on the custom element, that uses Three's {alpha: true}? I can try to make a PR if that sounds good.
Activity
jsantell commentedon Nov 14, 2018
You totally called our bluff on 'all valid CSS strings', Andres 😬 we should update that in the docs to specify that it accepts the subset of
<color>strings supported by THREE.Color#setStyle. Although it doesn't seem too outrageous to parse out gradients, I wonder if there's some combo of specifying a set of colors and generating something like #66 (for that blurry effect commonly used, e.g. #181)forresto commentedon Dec 1, 2018
How about
transparentas a boolean attribute, then we could do gradients (or whatever) via css?forresto commentedon Dec 6, 2018
Are there any blockers to making a new
transparentattribute on the custom element, that uses Three's{alpha: true}? I can try to make a PR if that sounds good.mrdoob commentedon Dec 7, 2018
@forresto a PR to test the idea out would be nice indeed 👌
forresto commentedon Dec 7, 2018
(Moved to #268)
poc transparent rendering, ref google#182