Top "Hex" questions

Hexadecimal (also base 16, or hex) is the base-16 positional numeral system, using the 16 symbols 0–9 and A‒F.

How to convert char to hex stored in uint8_t form?

Suppose I have these variables, const uint8_t ndef_default_msg[33] = { 0xd1, 0x02, 0x1c, 0x53, 0x70, 0x91, 0x01, 0x09, 0…

c hex uint
Are there any good reasons for using hex over decimal for RGB colour values in CSS?

rgb(255,255,255) notation has been available since CSS1. But #ffffff seems to be vastly more popular. Obviously it's slightly more compact. …

css colors hex rgb
Python - How to edit hexadecimal file byte by byte

I want to be able to open up an image file and extra the hexadecimal values byte-by-byte. I have no …

python byte hex filereader
Convert 8-digit hex colors to rgba colors?

Everything I've found on this subject simply converts the hex to rgb and then adds an alpha of 1. I want …

css colors hex rgba
How to Convert Qcolor value to hex value?

I have implemented a QColor dialog box which opens on certain condition. To get the selected color after final selection …

qt pyqt hex
store hex value (0x45E213) in an integer

In my application I used a converter to create from 3 values > RGB-colors an Hex value. I use this to …

java android hex numberformatexception
Extract matplotlib colormap in hex-format

I am trying to extract discrete colors from a matplotlib colormap by manipulating this example. However, I cannot find the …

python matplotlib hex color-mapping colormap
Convert rgb strings to hex in Javascript

I am using the TweenMax JS library with the ColorPropsPlugin which will tween color values which are specified in many …

javascript hex rgb
2's complement hex number to decimal in java

I have a hex string that represents a 2's complement number. Is there an easy way (libraries/functions) to translate …

java hex twos-complement negative-number
Format specifier for hex char in C

Is there a format specifier for sprintf in C that maps a char to hex in the same way that %…

c hex format-specifiers