# Creating ellipses with text in it

**URL:** https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452
**Category:** Beginners
**Created:** [October 14, 2018, 8:36am UTC](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452 "2018-10-14T08:36:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![xarax](https://avatars.discourse-cdn.com/v4/letter/x/43a26b/32.png) [@xarax](https://discourse.processing.org/u/xarax)
#### Post date: [October 14, 2018, 8:36am UTC](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452/1 "2018-10-14T08:36:17Z")

</div>

![T-oben](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/922676812515f918aec031e605c5ac6bff1310c1.png)

I would like to create a Ellipse with text in it, at a specificed Position.  
Is that possible?

---

<div class="post-metadata">

### Author: ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)
#### Post date: [October 14, 2018, 8:51am UTC](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452/2 "2018-10-14T08:51:57Z")

</div>

Yes.

```auto
float x, y;
String s = "Text!";

  void setup() {
  size(600, 400);
  x = 200;
  y = 200;
  textAlign(CENTER);
  textSize(20);
}

void draw() {
  background(0);

  pushMatrix();
  fill(255);
  noStroke();
  translate(x, y);
  ellipse(0, 0, 100, 100);
  fill(0, 100, 0);
  text(s, 0, 6);
  popMatrix();
  
}

```

---

<div class="post-metadata">

### Author: ![xarax](https://avatars.discourse-cdn.com/v4/letter/x/43a26b/32.png) [@xarax](https://discourse.processing.org/u/xarax)
#### Post date: [October 14, 2018, 9:51am UTC](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452/3 "2018-10-14T09:51:48Z")

</div>

Thank you, you helped me a lot
