# Rectangle rounded corners

**URL:** <https://cl.desmos.com/t/rectangle-rounded-corners/8880>\
**Category:** Questions\
**Created:** [October 27, 2026, 5:11pm UTC](https://cl.desmos.com/t/rectangle-rounded-corners/8880 "2026-10-27T17:11:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![desmosguy](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/desmosguy/32/9135_2.png) [@desmosguy](https://cl.desmos.com/u/desmosguy)\
**Post date:** [October 27, 2026, 5:11pm UTC](https://cl.desmos.com/t/rectangle-rounded-corners/8880/1 "2026-10-27T17:11:27Z")

</div>

What is the fastest / most efficient way of creating solid rectangles with rounded corner. I don’t mean what way is quickest to implement, just what way runs fastest, least amount of frame time. This is because I wanted multiple rectangle with round corner and so it would be lag. Polygon is fast, and what I did try was 2 polygon rectangles, and then having a point on each corner which is fastest way to render a circle, but I do not believe scaling the points to remain consistent no matter screen size is possible.

---

<div class="post-metadata">

**Author:** ![desmosguy](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/desmosguy/32/9135_2.png) [@desmosguy](https://cl.desmos.com/u/desmosguy)\
**Post date:** [October 27, 2026, 6:03pm UTC](https://cl.desmos.com/t/rectangle-rounded-corners/8880/2 "2026-10-27T18:03:11Z")

</div>

Nevermind guys, just remembered the project I need this for uses locked viewport.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)\
**Post date:** [October 29, 2026, 6:03pm UTC](https://cl.desmos.com/t/rectangle-rounded-corners/8880/3 "2026-10-29T18:03:35Z")

</div>

Closed on October 29, 2026, 6:03pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
