# Click on a point on a sphere

**URL:** <https://discourse.processing.org/t/click-on-a-point-on-a-sphere/18657>\
**Category:** Coding Questions\
**Created:** [March 14, 2020, 4:44pm UTC](https://discourse.processing.org/t/click-on-a-point-on-a-sphere/18657 "2020-03-14T16:44:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [March 25, 2020, 12:44am UTC](https://discourse.processing.org/t/click-on-a-point-on-a-sphere/18657/6 "2020-03-25T00:44:16Z")

</div>

> [@Chrisir](#):
>
> an offscreen buffer and use different, unique colors

Picking is a great technique, and quite simple to implement by hand. For a javascript implementation, see mPicker:

> <https://github.com/physicsdavid/mPicker/tree/master/example>
>
> //github.com/physicsdavid/mPicker/tree/master/example

- Previous discussion: [Click event on 3D primitive - #4 by kfrajer](https://discourse.processing.org/t/click-event-on-3d-primitive/18426/4)
- Jave library version: Picking [GitHub - nclavaud/picking: Processing Library Template for Eclipse](https://github.com/nclavaud/picking)

---

_[View the full topic](https://discourse.processing.org/t/click-on-a-point-on-a-sphere/18657)._
