# How ellipsoid color can be changed when it is clicked

**URL:** <https://community.cesium.com/t/how-ellipsoid-color-can-be-changed-when-it-is-clicked/9490>\
**Category:** CesiumJS\
**Created:** [May 1, 2020, 3:10pm UTC](https://community.cesium.com/t/how-ellipsoid-color-can-be-changed-when-it-is-clicked/9490 "2020-05-01T15:10:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulvinderjatt](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kulvinderjatt/32/2895_2.png) [@kulvinderjatt](https://community.cesium.com/u/kulvinderjatt)\
**Post date:** [May 1, 2020, 3:10pm UTC](https://community.cesium.com/t/how-ellipsoid-color-can-be-changed-when-it-is-clicked/9490/1 "2020-05-01T15:10:48Z")

</div>

Hi Guys,

When Red dome in this example is clicked [https://sandcastle.cesium.com/?src=Partial%20Ellipsoids.html](https://sandcastle.cesium.com/?src=Partial%20Ellipsoids.html), I want to change its color to say Green.

#2- How can we register a click event on an entity to perform some logic ?

Thanks,  
Kulvinder

---

<div class="post-metadata">

**Author:** ![kulvinderjatt](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kulvinderjatt/32/2895_2.png) [@kulvinderjatt](https://community.cesium.com/u/kulvinderjatt)\
**Post date:** [May 7, 2020, 6:02pm UTC](https://community.cesium.com/t/how-ellipsoid-color-can-be-changed-when-it-is-clicked/9490/2 "2020-05-07T18:02:28Z")

</div>

Hi Guys,

Just to update, I am able to fix this.

Thanks,  
Kulvinder
