Draw a Line With a Set Height

As the topic mentioned that I found Draw a Line With a Set Width

But how could I do a similar things that to line with height? Thanks.

Iā€™m not sure I understand your question, but I think you will find everything you need to draw lines in the great GreasedLine material from @roland !