# Smooth() for android

**URL:** <https://discourse.processing.org/t/smooth-for-android/3909>\
**Category:** Processing for Android\
**Created:** [September 27, 2018, 4:33pm UTC](https://discourse.processing.org/t/smooth-for-android/3909 "2018-09-27T16:33:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 27, 2018, 4:33pm UTC](https://discourse.processing.org/t/smooth-for-android/3909/1 "2018-09-27T16:33:09Z")

</div>

Is it possible to get the smooth() function to work on processing for android? all my graphics have non-smooth edges whether i use the function or not. if not is there any other way i can anti alias my graphics? thanks.

---

<div class="post-metadata">

**Author:** ![ScottGrogin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scottgrogin/32/1689_2.png) [@ScottGrogin](https://discourse.processing.org/u/ScottGrogin)\
**Post date:** [September 28, 2018, 8:30am UTC](https://discourse.processing.org/t/smooth-for-android/3909/2 "2018-09-28T08:30:28Z")

</div>

Howdy,

Could you post your code so we can take a look at what’s going on?

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 28, 2018, 8:51am UTC](https://discourse.processing.org/t/smooth-for-android/3909/3 "2018-09-28T08:51:58Z")

</div>

Hi, ive attached a screenshot of what the code produces. the shape has jagged edges and clearly has not had an anti aliasing filter applied to it. text seems to render ok but imported PNG’s implemented with PShape are also not treated with anti-aliasing.

```auto
void setup(){
 fullScreen();
 smooth();
}

void draw(){
  background(255);
  fill(0);
  ellipse(width/2,height/2,width/2,height/2);
}

```

 ![Screenshot_2018-09-28-09-46-25](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/1a5581fba6449cfa01f23d65260ae43f5b769063.png)

---

<div class="post-metadata">

**Author:** ![ScottGrogin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scottgrogin/32/1689_2.png) [@ScottGrogin](https://discourse.processing.org/u/ScottGrogin)\
**Post date:** [September 28, 2018, 9:02am UTC](https://discourse.processing.org/t/smooth-for-android/3909/4 "2018-09-28T09:02:08Z")

</div>

I think you might need to put a value in the smooth function, try smooth(8), I’ll link to the documentation.  
[https://processing.org/reference/smooth\_.html](https://processing.org/reference/smooth_.html)  
I hope that works.

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 28, 2018, 9:04am UTC](https://discourse.processing.org/t/smooth-for-android/3909/5 "2018-09-28T09:04:44Z")

</div>

Hi gonadgranny,

Try using `fullScreen(P2D)`.

If I remember correctly, there is an issue with `smooth()` and the default renderer.

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 28, 2018, 9:07am UTC](https://discourse.processing.org/t/smooth-for-android/3909/6 "2018-09-28T09:07:55Z")

</div>

Ah yes the combination of fullScreen(P2D) and smooth(8) has done the job. thanks!

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 28, 2018, 11:06am UTC](https://discourse.processing.org/t/smooth-for-android/3909/7 "2018-09-28T11:06:13Z")

</div>

Ah, it appears i spoke too soon. While the shapes now look good the text has turned blurry. is there any way around this or am i stuck with good type and bad graphics or vice verse?

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [September 28, 2018, 11:10am UTC](https://discourse.processing.org/t/smooth-for-android/3909/8 "2018-09-28T11:10:36Z")

</div>

8 might be too high. Try using 2.

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 28, 2018, 11:19am UTC](https://discourse.processing.org/t/smooth-for-android/3909/9 "2018-09-28T11:19:44Z")

</div>

Yes the text is still blurry unfortunately…

---

<div class="post-metadata">

**Author:** ![gonadgranny](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Post date:** [September 28, 2018, 12:19pm UTC](https://discourse.processing.org/t/smooth-for-android/3909/10 "2018-09-28T12:19:21Z")

</div>

…ok it seems by adding some more textSize() commands. thanks for the help.
