# Place a circle on the surface of a sphere

**URL:** <https://discourse.processing.org/t/place-a-circle-on-the-surface-of-a-sphere/38770>\
**Category:** Coding Questions\
**Created:** [September 15, 2022, 7:32am UTC](https://discourse.processing.org/t/place-a-circle-on-the-surface-of-a-sphere/38770 "2022-09-15T07:32:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [September 15, 2022, 9:59am UTC](https://discourse.processing.org/t/place-a-circle-on-the-surface-of-a-sphere/38770/4 "2022-09-15T09:59:05Z")

</div>

Hello,

You should be able to adapt this to p5.js:

> [@Points on the surface of a Sphere using beginShape(POINTS or QUADS)](https://discourse.processing.org/t/points-on-the-surface-of-a-sphere-using-beginshape-points-or-quads/34425/6):
>
> Hello, Take a look here at the Cartesian Coordinates: I used my original example for the random points, a translate, a rotate for phi and a rotate for theta and then drew a circle(): This approach was fresh in my head from a recent project. slight_smile

A translate, a rotate for _phi_ and a rotate for _theta_ and then draw a circle():

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

`:)`

---

_[View the full topic](https://discourse.processing.org/t/place-a-circle-on-the-surface-of-a-sphere/38770)._
