# Box stroke width

**URL:** <https://discourse.processing.org/t/box-stroke-width/27436>\
**Category:** p5.js\
**Created:** [January 28, 2021, 3:58pm UTC](https://discourse.processing.org/t/box-stroke-width/27436 "2021-01-28T15:58:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasboy](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@yasboy](https://discourse.processing.org/u/yasboy)\
**Post date:** [January 28, 2021, 3:58pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/1 "2021-01-28T15:58:45Z")

</div>

Hello,  
I’ve just started learning how to use p5.js in a 3D environment.  
I made a simple array of boxes with different heights (here’s the code, it is very simple [p5.js Web Editor](https://editor.p5js.org/ybenbihi/sketches/F05toan8W))

However, when two boxes with differents heights touch each other, the stroke isn’t very bold (which is normal I guess).I don’t know if what I’m saying is clear so here’s an image showing it

 ![Screenshot_2021-01-28 p5 js Web Editor Sassy beret](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2cb9c6fe5cb51da1808d3b4828f567b0e7e424c9.png)

Is there any way I can make the lines circled in red a little bit more thick ?

Thanks in advance

---

<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:** [January 28, 2021, 4:51pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/2 "2021-01-28T16:51:36Z")

</div>

box (24,h,24 );

Chrisir

---

<div class="post-metadata">

**Author:** ![yasboy](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@yasboy](https://discourse.processing.org/u/yasboy)\
**Post date:** [January 28, 2021, 4:54pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/3 "2021-01-28T16:54:47Z")

</div>

I found it 5 minutes after sending my message haha thanks !

---

<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:** [January 28, 2021, 5:02pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/4 "2021-01-28T17:02:08Z")

</div>

Hey, and welcome to the forum!

Great to have you here!

---

<div class="post-metadata">

**Author:** ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)\
**Post date:** [January 28, 2021, 5:12pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/5 "2021-01-28T17:12:21Z")

</div>

An alternative solution:

```auto
translate(26*i, h/2, 26*j);

```

---

<div class="post-metadata">

**Author:** ![yasboy](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@yasboy](https://discourse.processing.org/u/yasboy)\
**Post date:** [January 31, 2021, 1:53pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/6 "2021-01-31T13:53:35Z")

</div>

thanks for your solutions ! if anyone is interested in seeing the result, [here it is](https://www.instagram.com/p/CKmllDSl39a/)

---

<div class="post-metadata">

**Author:** ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)\
**Post date:** [January 31, 2021, 2:17pm UTC](https://discourse.processing.org/t/box-stroke-width/27436/7 "2021-01-31T14:17:59Z")

</div>

Thanks, it is beautiful!
