# Real Object Color in Python Bridge

**URL:** <https://forum.rtmaps.com/t/real-object-color-in-python-bridge/92>\
**Category:** User SDK\
**Created:** [April 25, 2024, 1:17pm UTC](https://forum.rtmaps.com/t/real-object-color-in-python-bridge/92 "2024-04-25T13:17:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duorhs](https://forum.rtmaps.com/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@duorhs](https://forum.rtmaps.com/u/duorhs)\
**Post date:** [April 25, 2024, 1:17pm UTC](https://forum.rtmaps.com/t/real-object-color-in-python-bridge/92/1 "2024-04-25T13:17:51Z")

</div>

Hello,

I create a RealObject in the python bridge and want to set the color.  
However, I don’t really get how to set the color properly that it is shown in the 3d viewer.  
As far as I understand it is just one value and not 3 as I was used to?

Thank you,

---

<div class="post-metadata">

**Author:** ![Teo](https://forum.rtmaps.com/user_avatar/forum.rtmaps.com/teo/32/10_2.png) [@Teo](https://forum.rtmaps.com/u/Teo)\
**Post date:** [April 25, 2024, 1:19pm UTC](https://forum.rtmaps.com/t/real-object-color-in-python-bridge/92/2 "2024-04-25T13:19:32Z")

</div>

Hello,

> As far as I understand it is just one value and not 3 as I was used to?

Indeed, the color of a real object is actually an unsigned 32-bit integers with BGR byte-order :  
`out.data[0].color = (_BLUE_ << 16) + (_GREEN_ << 8) + _RED_`

For example, if I want a red realobject :  
`out.data[0].color = (0 << 16) + (0 << 8) + 255`

If I want the microsft vscode blue :  
`out.data[0].color = (239 << 16) + (164 << 8) + 0`

Hope this helps,
