# Extending a line

**URL:** <https://discourse.processing.org/t/extending-a-line/9880>\
**Category:** Coding Questions\
**Created:** [April 2, 2019, 4:30pm UTC](https://discourse.processing.org/t/extending-a-line/9880 "2019-04-02T16:30:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 2, 2019, 4:35pm UTC](https://discourse.processing.org/t/extending-a-line/9880/2 "2019-04-02T16:35:40Z")

</div>

for a start:

> [@Making an aiming line?](https://discourse.processing.org/t/making-an-aiming-line/9514/4):
>
> // I will try and figure out that lerp() function again float ballX, ballY; float angle = random(0, TWO\_PI); float ballSpeedX = 3, ballSpeedY = 3; boolean wallHit = false; //---------------------------------------------------------------------------------------------------------- void setup() { size(600, 400); ballX = width/4; ballY = height/4; } void draw() { background(150); drawBall(); moveBall(); } //------------------------------------------------------------------------…

---

_[View the full topic](https://discourse.processing.org/t/extending-a-line/9880)._
