# \[SOLVED\] Shape stroke disappearing with resize -- solved, Clipping Plane issue

**URL:** https://discourse.processing.org/t/solved-shape-stroke-disappearing-with-resize-solved-clipping-plane-issue/2514
**Category:** p5.js
**Created:** [August 9, 2018, 3:20pm UTC](https://discourse.processing.org/t/solved-shape-stroke-disappearing-with-resize-solved-clipping-plane-issue/2514 "2018-08-09T15:20:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stefan](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@stefan](https://discourse.processing.org/u/stefan)
#### Post date: [August 9, 2018, 3:20pm UTC](https://discourse.processing.org/t/solved-shape-stroke-disappearing-with-resize-solved-clipping-plane-issue/2514/1 "2018-08-09T15:20:18Z")

</div>

When the window narrows and var ‘dist’ gets smaller, this happens:  
 ![example1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/f33f39ed3f286629a0abd4f0828eed14a1bfcfbc.jpeg)

Edit: if your shapes look like this, the culprit is the clipping plane. The Coding Train video on P5 js Camera features a solution.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [September 24, 2019, 5:24pm UTC](https://discourse.processing.org/t/solved-shape-stroke-disappearing-with-resize-solved-clipping-plane-issue/2514/2 "2019-09-24T17:24:51Z")

</div>

> [@stefan](#):
>
> The Coding Train video on P5 js Camera features a solution

Thanks for the solution tip. The clip is here:

[![](https://img.youtube.com/vi/BW3D9WwalQE/maxresdefault.jpg "18.5: Camera and Perspective - WebGL and p5.js Tutorial") ](https://www.youtube.com/watch?v=BW3D9WwalQE&t=482)

…and the section on [perspective()](https://processing.org/reference/perspective_.html) and the clipping plane begins right at minute 8.
