drawing lines with different angles/ c# help please :(

i want to make draw heart beating by using script and i want to make this with different angles and randomly.

basically i just want to give one pixel image to the script and then i want it to make it like just like in the picture which is

1647756--102644--$kalp-ritmi-bozukluklari.jpg

help me please :frowning:

What help do you need? Do you have an equation for the heart beat signal? Do you have problems drawing the lines?

Albeit i don’t like the impatient ones (2 hours bump!) some ideas from me.
Displaying any kind of lines or dots is done best with the Vectrosity package from Eric Haines (Eric5h5) which you can purchase in the asset store.
You could also fake the effect by drawing the heart line in a graphics program (gimp, paint.net) and then display it on a quad and “scroll” it. The free unity space shooter tutorial (asset store) shows how to seamlessly scroll the background. so you could get some hints and examples there.

That has everything you would need.

the user will be not draw the lines, it will be drawn on run time, how can i do this?

thanks

hi renman,

it will be drawn on run time, is linerenderer class let this action?

So if its not constantly updated, or even it it is, you can set the number of verticies, in the line and thier positioning.

So, verticie 0, pos 00, verticie 1, pos 1,10 etc.