# Color: is this a bug?

**URL:** <https://forum.xojo.com/t/color-is-this-a-bug/28760>\
**Category:** General\
**Created:** [December 21, 2015, 7:41am UTC](https://forum.xojo.com/t/color-is-this-a-bug/28760 "2015-12-21T07:41:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Massimo\_Valle](https://forum.xojo.com/user_avatar/forum.xojo.com/massimo_valle/32/23049_2.png) [@Massimo\_Valle](https://forum.xojo.com/u/Massimo_Valle)\
**Post date:** [December 21, 2015, 7:41am UTC](https://forum.xojo.com/t/color-is-this-a-bug/28760/1 "2015-12-21T07:41:50Z")

</div>

Before reporting it, I like to know your thoughts on this:

```auto
  dim i as UInt32 = &h11223344
  dim c as Color = Color(i)
```

the resulting Color value is `&c22334411`

Seems not correct to me.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [December 21, 2015, 8:01am UTC](https://forum.xojo.com/t/color-is-this-a-bug/28760/2 "2015-12-21T08:01:49Z")

</div>

not a bug… you specified 8 digits… where in this case the 11 is ALPHA (which are the high bits of a numeric value) but were added as the low digits on a “color” object to maintain the RGB compatibilty with previous versions of RealBasic/RealStudio/XOJO that had not supported the Alpha channel.

---

<div class="post-metadata">

**Author:** ![Massimo\_Valle](https://forum.xojo.com/user_avatar/forum.xojo.com/massimo_valle/32/23049_2.png) [@Massimo\_Valle](https://forum.xojo.com/u/Massimo_Valle)\
**Post date:** [December 21, 2015, 8:26am UTC](https://forum.xojo.com/t/color-is-this-a-bug/28760/3 "2015-12-21T08:26:53Z")

</div>

Right, makes sense.  
Thank you Dave.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:06pm UTC](https://forum.xojo.com/t/color-is-this-a-bug/28760/4 "2020-10-29T18:06:46Z")

</div>


