Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
color.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  color_t
 RGB color representation with 16-bit precision per channel. More...

Macros

#define RED_COMPONENT(x)
#define GREEN_COMPONENT(x)
#define BLUE_COMPONENT(x)

Detailed Description

Definitions for colors

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Macro Definition Documentation

◆ BLUE_COMPONENT

#define BLUE_COMPONENT ( x)
Value:
(uint16_t) ( (((x) & 0xff) * 65535 / 255))

◆ GREEN_COMPONENT

#define GREEN_COMPONENT ( x)
Value:
(uint16_t) (((((x) >> 8) & 0xff) * 65535 / 255))

◆ RED_COMPONENT

#define RED_COMPONENT ( x)
Value:
(uint16_t) (((((x) >> 16) & 0xff) * 65535 / 255))