# Inversely ellipses

**URL:** <https://discourse.processing.org/t/inversely-ellipses/12621>\
**Category:** Coding Questions\
**Created:** [July 9, 2019, 10:29am UTC](https://discourse.processing.org/t/inversely-ellipses/12621 "2019-07-09T10:29:55Z")\
**Posts on this page:** 20\
**Page:** 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:** [July 10, 2019, 3:15pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/22 "2019-07-10T15:15:02Z")

</div>

Oh boy…

just add other values to x and y

You need to understand the Code

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 10, 2019, 4:23pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/23 "2019-07-10T16:23:41Z")

</div>

how  
this is my code

```auto
void setup(){
  
size(300,300);

for(int i=0; i<300;i=i+30){ellipse(i,i,15,15);
}}

```

---

<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:** [July 10, 2019, 4:43pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/24 "2019-07-10T16:43:26Z")

</div>

Wow

Please look at my first post again what to do with x and y

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 10, 2019, 5:45pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/25 "2019-07-10T17:45:35Z")

</div>

That’s not working …

---

<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:** [July 10, 2019, 5:47pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/26 "2019-07-10T17:47:29Z")

</div>

Show your code, how can we spot errors otherwise

---

<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:** [July 10, 2019, 5:52pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/27 "2019-07-10T17:52:37Z")

</div>

Understand the idea:

The for loop tells how many ellipses we generate - using variable i

The x and y variable tell the position. You can give them an start value 0 or 35 and then inside the for loop add something to x and to y. Eg 30 for x and 30 for y.

When we add something to them in the for loop x and y store the new value and get bigger each time. So the next Ellipse is further down.

You can also add different values to x and y

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 6:24am UTC](https://discourse.processing.org/t/inversely-ellipses/12621/28 "2019-07-11T06:24:16Z")

</div>

Still not success

What is the difference between (for and while)

---

<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 11, 2019, 8:05am UTC](https://discourse.processing.org/t/inversely-ellipses/12621/29 "2019-07-11T08:05:45Z")

</div>

> [@maakin](#):
>
> I mean who can draw ellipses like that  
> Using(
> 
> ![77B63E72-8547-497F-B405-AD3D243E1742.jpeg](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/502c7188dc2b97c46d6f66c05de4ce17578b49b0.jpeg)
> 
> for)

I used noise() to generate those ellipses:

```auto
float xoff = 0.0;

for (float th = -TAU/20 +TAU/2; th < 3*TAU/2 + TAU/20; th += TAU/500)
  {
  xoff = xoff + .02;
  stroke(0);  
  strokeWeight(4);
  float r = 40 + 10*noise(xoff);
  point( r*cos(th)+50, r*sin(th)+50);
  println(noise(xoff));
  }

```

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/ef0de624a1b06654423200b71ecc7ceef513a816.png)

I could do similar for lines and text to achieve the effect you are looking for,

🙂

---

<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:** [July 11, 2019, 8:06am UTC](https://discourse.processing.org/t/inversely-ellipses/12621/30 "2019-07-11T08:06:19Z")

</div>

Post your code and then we can have a look

For and while are similar, see reference

---

<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:** [July 11, 2019, 10:12am UTC](https://discourse.processing.org/t/inversely-ellipses/12621/31 "2019-07-11T10:12:44Z")

</div>

> [@glv](#):
>
> mean who can draw ellipses like that

Here the initial x value is 35 or something (like before) but the initial y value is height-35 or something (height is an inbuilt variable telling you the height of your sketch window).

Read the tutorials to understand the x and y values on the screen as I said please.

Now in the for loop you have to add something to x.

But since y is already pretty high, you have to **subtract** something from y to get the position of the next ellipse.

---

<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:** [July 11, 2019, 10:14am UTC](https://discourse.processing.org/t/inversely-ellipses/12621/32 "2019-07-11T10:14:26Z")

</div>

You forgot to show your code

Did you read the tutorials?

Did you read the reference for the for loop?

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 12:54pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/33 "2019-07-11T12:54:30Z")

</div>

Please draw like this

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dbf22fb51185001276ef8f7558ad20ce6bf6023f.jpeg)

---

<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:** [July 11, 2019, 1:04pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/34 "2019-07-11T13:04:24Z")

</div>

No.

It’s your code.

You fix it.

Nobody will do it for you.

Post your entire code.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [July 11, 2019, 1:08pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/35 "2019-07-11T13:08:49Z")

</div>

insofar i would like to ask what the TITLE should mean?

> Inversely ellipses

in my example code  
the axis and “row” of circles might fit better to the  
very first picture you show us.

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 1:14pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/36 "2019-07-11T13:14:11Z")

</div>

I want number bottom to top  
And ellipses also proportional  
Like this photo

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/dbf22fb51185001276ef8f7558ad20ce6bf6023f.jpeg)

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 1:15pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/37 "2019-07-11T13:15:37Z")

</div>

No one can draw like that in processing

---

<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:** [July 11, 2019, 1:17pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/38 "2019-07-11T13:17:01Z")

</div>

Show. Your. Code.

Chrisir

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 1:19pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/39 "2019-07-11T13:19:55Z")

</div>

How to write numbers bottom y to top y  
And bottom ox to x  
And ellipses bottom y, x to top like proportional

---

<div class="post-metadata">

**Author:** ![maakin](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@maakin](https://discourse.processing.org/u/maakin)\
**Post date:** [July 11, 2019, 1:21pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/40 "2019-07-11T13:21:33Z")

</div>

Then why they create two similar code??

---

<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:** [July 11, 2019, 1:22pm UTC](https://discourse.processing.org/t/inversely-ellipses/12621/41 "2019-07-11T13:22:22Z")

</div>

Did you follow my first post?

I understand you don’t want my help.

Bye.

[Previous page](https://discourse.processing.org/t/inversely-ellipses/12621.md?page=1)

[Next page](https://discourse.processing.org/t/inversely-ellipses/12621.md?page=3)
