RGB to HEX Color Converter

Anyone know a way to take user controlled values for red, green, and blue, and convert them to Hexadecimal programmatically? (I want to use the RGB with bitmapData.floodFill, but that requires Hex.)

Something similar to https://www.rapidtables.com/convert/color/rgb-to-hex.html

From what I understand, what I might actually need to do is convert base 10 values to base 16.


1 Like

Are you serious! I should have known there was some sort of function. I searched every keyword I knew. Thank you.