Shape outline
-
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. -
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!
-
@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.)
-
-
I would definitely give that suggestion from @Nisse5 a try! Sounds like it would produce a really nice effect.