# Draw lines that go from bottom to top?

**URL:** <https://discourse.processing.org/t/draw-lines-that-go-from-bottom-to-top/5466>\
**Category:** Coding Questions\
**Created:** [November 12, 2018, 10:14am UTC](https://discourse.processing.org/t/draw-lines-that-go-from-bottom-to-top/5466 "2018-11-12T10:14:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![josie](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@josie](https://discourse.processing.org/u/josie)\
**Post date:** [November 12, 2018, 9:11pm UTC](https://discourse.processing.org/t/draw-lines-that-go-from-bottom-to-top/5466/3 "2018-11-12T21:11:58Z")

</div>

Hi,

Yes, I want horizontal lines that take the full length and then move up. However, I only want a certain amount of lines created and once the last line of lets say 200 lines reaches the top, I want the process to start over.

I liked the appearance of the lines when drawn at random and in the code they appeared to start at the bottom, but if this isn’t the case then how would I be able to edit the spacing between the lines if I don’t make y random?

I hadn’t thought about the way I wanted to add the lines, I liked how it looked in the code, so I’m not sure which way would preserve that appearance the best.

I know that a lot of lines are being created which is why I wanted to know if there was a way to cap it at a certain amount? For example, have it create only 200 lines.

This is what I am trying to do. I was able to do this using an array in a different code, but all the lines did not start at the bottom because of the position I specified (I took these pictures at the moment they best represented what I am trying to do) so I was advised to make an array list and remove the lines when they got to the top instead.

I really just want a group of lines that look like this to continuously move from the bottom to top.

 ![Screenshot%20(23)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/aaf3de385e72b05d775adfdf2d713947ce9e2eba.png)

---

_[View the full topic](https://discourse.processing.org/t/draw-lines-that-go-from-bottom-to-top/5466)._
