Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Shape outline

    Help
    3
    5
    156
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Richard F last edited by

      I am trying to fill the screen with a colour that is bright in the middle of the screen and fades towards the edges.
      I thought I would be able to do this by creating four triangles that meet at a point in the middle of the screen and have their sides against an edge each, then setting the vertex colours as light in the middle and darker for the two corners at the edge of the screen.
      This sort of works except there is a black outline around each triangle, giving me a big black cross which I don't want.
      Is there a way to turn off the border or a better way to achieve the fading effect?
      Thank you for any suggestions.

      N 1 Reply Last reply Reply Quote 1
      • Dave
        Dave Fuze Team last edited by

        I imagine that you are using the create shape functions to achieve this, given that you referenced setVertexColour() but do correct me if I'm wrong.

        There is a function called setShapeLineStyle() which I believe does what you want :)

        The syntax is as follows:

        setShapeLineStyle( shapeHandle, thickness, tint )
        

        If you set the thickness parameter to 0, or the tint to {0, 0, 0, 0}, I believe you'll get invisible outlines!

        1 Reply Last reply Reply Quote 0
        • N
          Nisse5 F @Richard last edited by

          @Richard How about drawing filled circles that goes toward the center and changes color in the process? (Creating such a background in a buffered image to not harm performance.)

          1 Reply Last reply Reply Quote 1
          • R
            Richard F last edited by

            Thank you both. @Dave solution, seems more straightforward so I'll go with that one. I like the alternative thinking though @Nisse5 .

            1 Reply Last reply Reply Quote 1
            • Dave
              Dave Fuze Team last edited by

              I would definitely give that suggestion from @Nisse5 a try! Sounds like it would produce a really nice effect.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post