# Draw a number on each side of a box

**URL:** https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916
**Category:** Coding Questions
**Created:** [July 30, 2020, 1:39am UTC](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916 "2020-07-30T01:39:56Z")
**Posts on this page:** 1
**Showing post:** 2

<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, 2020, 2:13am UTC](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916/2 "2020-07-30T02:13:10Z")

</div>

Hello,

Here is an example to start with:

> [@Convert text to PShape?](https://discourse.processing.org/t/convert-text-to-pshape/15552/2):
>
> Hello, [https://processing.org/reference/PShape.html](https://processing.org/reference/PShape.html)[https://processing.org/reference/PImage.html](https://processing.org/reference/PImage.html)[https://processing.org/reference/texture\_.html](https://processing.org/reference/texture_.html)[https://processing.org/reference/textureMode\_.html](https://processing.org/reference/textureMode_.html) From the references above I was able to: // https://processing.org/reference/PGraphics.html // https://processing.org/reference/texture\_.html PGraphics pg; PImage pi; public void settings() { size(400, 400, P3D); } public void setup() { pg = createGraphics(100, 100); pg.begin…

This will work for a cube as well.

You will have to add a _z_ to the vertices and align your _uv_ coordinates correctly.

I just did it for one face and rotated so you could see it:

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

There is a an example in the Processing IDE here:

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

> [@hugoromo](#):
>
> Or If someone could guide me through any solution!

Walk through the code and explore the tutorials and references as necessary.

One of the best tools in a programmers tool chest is knowing the resources available to you and learning to navigate, filter and use them.

This is a very short list:

> **Resources \< Click here to expand !**
>
> I encourage you to review the resources available here:
> 
> - The Processing _website_ has references, examples, tutorials, etc.  
> [https://processing.org/](https://processing.org/)
> - The Processing PDE (IDE) has lots to offer!  
> An exploration of the tabs will reveal what is available; libraries, tools and local examples there.
> - The Coding Train  
> [https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1\_aw](https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw)  
> [https://thecodingtrain.com/](https://thecodingtrain.com/)
> - Happy Coding  
> [Processing Tutorials - Happy Coding](https://happycoding.io/tutorials/processing/)
> - The source code can give insight if you are adventurous:  
> [GitHub - processing/processing: Source code for the Processing Core and Development Environment (PDE)](https://github.com/processing/processing)  
> Many of the Processing functions are here:  
> [processing/core/src/processing/core/PApplet.java at master · processing/processing · GitHub](https://github.com/processing/processing/blob/master/core/src/processing/core/PApplet.java)
> - The Processing Foundation  
> [https://processingfoundation.org/](https://processingfoundation.org/)  
> Check out the tabs.  
> In the education tab, there is a reference to the Coding Train.
> - And the Internet. `:)`

I expect that there are other ways to do this as well.

I will leave the rest of the exploration to you.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916)._
