# Integer to Hex

**URL:** https://forum.kirupa.com/t/integer-to-hex/108265
**Category:** Uncategorized
**Created:** [April 23, 2004, 7:59am UTC](https://forum.kirupa.com/t/integer-to-hex/108265 "2004-04-23T07:59:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![themos](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/themos/32/503_2.png) [@themos](https://forum.kirupa.com/u/themos)
#### Post date: [April 23, 2004, 7:59am UTC](https://forum.kirupa.com/t/integer-to-hex/108265/1 "2004-04-23T07:59:10Z")

</div>

Hey!  
I need to convert an integer value to hex to use with the setRGB thingy. (I want a slide bar that controls the colour of a movie clip)  
I know that you can use parseInt to get an integer from a hex value but how do you do the opposite?  
Cheers  
:hangover: (feeling sick as a dog)
