# Why circle disappears at y-coordinates ~ 250

**URL:** <https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256>\
**Category:** Coding Questions\
**Created:** [June 20, 2023, 8:55am UTC](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256 "2023-06-20T08:55:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [July 30, 2023, 12:38pm UTC](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256/3 "2023-07-30T12:38:41Z")

</div>

Hello,

This was in my _Drafts_ and a late response… it may still be helpful to some.

> [@appas](#):
>
> This is because you call millis() twice

It is because the math is exceeding the maximum value of an integer at some point in the code:

[https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html)

This code shows what happens to `y1` when `millis()` (an integer) is greater than 14654:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/f/f/ff5541d31c360204641f9dc29466ff43b785f7f2.png)

The above code shows where the point of concern is in the code.

You are using `millis()/1000` for time.

Consider using this floating point division in your code along with floating point math throughout:

`float t = millis()/1000.0; // Result is floating point`

Use this if you intend to use _integer math_ with 1 sec increments:

`float t = millis()/1000; // Result is an integer`

Your code will look much cleaner and identifiable as the equation to a parabola:

`float y = 20*t*t -100*t+ 200;`

`:)`

---

_[View the full topic](https://discourse.processing.org/t/why-circle-disappears-at-y-coordinates-250/42256)._
