How to draw the curve of 1px with a color gradient ??

I want to draw the curve of 1px with a color gradient like following image.
( Following image is drawed by Photoshop.)

1514379--86174--$test.png

Please tell me if there is a good solution !

By the way, as a result of research by myself is the following.

  1. line renderer : It is difficult to draw 1px line.
    2)GL : gl.line can draw 1px line. but I don’t know how to draw color gradient.
    3)shader labo: It seems possible, but the information is small on the Internet, it is difficult…

I’m sorry my english is poor.

Pretty simple with Vectrosity. If you want to use GL.LINES, then you’d set GL.Color as appropriate for each vertex.

–Eric

it can be done by storing alpha channel to your image in photoshop and save it as targa format

In my opinion, using this map image in a mesh plane as mesh particle (automatic billboard).

Before, by frame, you can modify transform Y-Axis Scale, and material X-Axis Tiling and Offset.

@Eric5h5
I can draw it by using GL.LINES() and GL.Color().
mega thanks!

1517647--86575--$????????? 2014-02-12 23.12.21.png

But I want to draw 5px curve with a color gradient, In addition.
Can"Vectrosity" draw it?
Or can GL.Line set line width?

Sorry, for my aditional question!

@zabhinav, @IsGreen
Thank you for your reply!
But I want to draw line X-Axis, Y-Axis and color gradient by dynamically…
So I can’t use static image…

http://starscenesoftware.com/vectrosity.html

“Lines can be any number of pixels thick”

GL.LINES is 1-pixel only.

–Eric

@tatsuya simple create gui texture and select image that u want to use or use some camera effect shaders

@zabhina

Thank you for your reply.
I was able to draw gradation curve, by generating geometry in Unity, put color in VertexShader and Texture2D, and adjust thickness in C++ native pluigin.

1557111--91691--$1658580_689563447761824_1636464077_o.jpg