nest-rs / nest

A simple rust 2D graphics library inspired by LOVE2D and https://github.com/alexandercampbell/simple
MIT License
6 stars 3 forks source link

Lines #5

Open twh2898 opened 7 years ago

twh2898 commented 7 years ago

It would be nice to have a way to draw lines by a list of points. This may be a shader implementation or just a shape template implementation.

vadixidav commented 7 years ago

I would rather have line vertexes from a shader standpoint, but this is totally doable. We could even have 1d tex coords for the line. We can even draw bezier curves by pulling in glowygraph shaders.

vadixidav commented 7 years ago

I also would like to point out glowygraph's shaders draw the lines with a two falloff radius solution to modify thickness.