# Corner radius in rectangle doesn't work in WEBGL

**URL:** <https://discourse.processing.org/t/corner-radius-in-rectangle-doesnt-work-in-webgl/28463>\
**Category:** Development\
**Created:** [March 12, 2021, 1:35pm UTC](https://discourse.processing.org/t/corner-radius-in-rectangle-doesnt-work-in-webgl/28463 "2021-03-12T13:35:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit90113](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Amit90113](https://discourse.processing.org/u/Amit90113)\
**Post date:** [March 12, 2021, 1:35pm UTC](https://discourse.processing.org/t/corner-radius-in-rectangle-doesnt-work-in-webgl/28463/1 "2021-03-12T13:35:07Z")

</div>

Well, I tried using the corner radius parameter in a rectangle in WEBGL mode it seems it does nothing.

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [March 12, 2021, 2:21pm UTC](https://discourse.processing.org/t/corner-radius-in-rectangle-doesnt-work-in-webgl/28463/2 "2021-03-12T14:21:15Z")

</div>

hi! It seems not implemented yet ☹

> <https://github.com/processing/p5.js/issues/5001>
>
> Most appropriate sub-area of p5.js?
> Accessibility (Web Accessibility)
> Build tools and processes
> Color
> Core/Environment/Rendering
> Data
> DOM
> Events
> Friendly error system
> Image
> ...

I think for now you need to draw it by yourself using beginShape/endShape.

This case it was ok but it would be even better if you can post a link to a sketch on the web editor to reproduce your issue. This would help spotting the problem and submitting an issue on github as well.
