23 char binarystr[33] = {0};
24 for(
size_t b = 0 ; b < 32 ; ++b) {
25 binarystr[31-b] =
'0' + ((val >> b) & 0x01);
28 bj_info(
"R:%d, G:%d, B:%d -[0x%08x]--> %ld\t0x%08x\t0b%s",
29 red, green, blue, mode, 0, val, binarystr
uint32_t bj_get_pixel_value(enum bj_pixel_mode mode, uint8_t red, uint8_t green, uint8_t blue)
Returns an opaque value representing a pixel colour, given its RGB composition.
Portable main() replacement with platform-aware entry shim.