# Font and shapes look pixelated

**URL:** <https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013>\
**Category:** Libraries\
**Created:** [April 21, 2020, 9:44pm UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013 "2020-04-21T21:44:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizardking93](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lizardking93](https://discourse.processing.org/u/lizardking93)\
**Post date:** [April 21, 2020, 9:44pm UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013/1 "2020-04-21T21:44:41Z")

</div>

Hey, my sketch is looking pretty awfull. Fonts look really bad, really pixelated. I would like the project to look smooth. When I try to use background(255) on the beggining of void draw, font shows as I wish but unfortunately ends up overlaping most of the project. Anyone knows a solution for this? Thanks

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [April 21, 2020, 10:29pm UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013/2 "2020-04-21T22:29:19Z")

</div>

Remember that the draw method renders a single frame and is executed about 60 times a second.  
Without background() the text is rendered on top of the previous text repeatably making it pixelated.

So if you don’t want pixelated text you either use `background()` or use `rect()` to erase the text before hand.

The advantage of avoiding background is that you can build up your display over many frames but most people use background and create the whole display every frame.

---

<div class="post-metadata">

**Author:** ![lizardking93](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lizardking93](https://discourse.processing.org/u/lizardking93)\
**Post date:** [April 22, 2020, 9:14am UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013/3 "2020-04-22T09:14:58Z")

</div>

I tried rect but text still looks really bad.  
EDIT: I mean, when I use rect before the text with fill 255, it overlaps the text  
EDIT2: Just solved it. Completely forgot to add fill to text. Thank you very much
