Skip to content

Background color does not accept all valid CSS strings #182

Closed

Description

@cwervo

Tried with background: linear-gradient(#e66465, #9198e5);, radial-gradient(#e66465, #9198e5) & transparent

Suggested resolution

Activity

  1. jsantell commented on Nov 14, 2018

    @jsantell
    Contributor

    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)

  2. forresto commented on Dec 1, 2018

    @forresto

    How about transparent as a boolean attribute, then we could do gradients (or whatever) via css?

  3. forresto commented on Dec 6, 2018

    @forresto

    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.

  4. mrdoob commented on Dec 7, 2018

    @mrdoob
    Collaborator

    @forresto a PR to test the idea out would be nice indeed 👌

  5. forresto commented on Dec 7, 2018

    @forresto

    (Moved to #268)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions