Where can I find a header file or a library with a large number of aliases for rgb colors?

  • 2
    This, at a minimum, is based on how color is stored. QColor, what's the other, or are you pure components? Yes, and they can be in the range of [0; 1] or [0, 255]. - AivanF.
  • one
    @AivanF. arrays of 3 components, such as const unsigned char red[] = {255, 0, 0} - dimitrius
  • It is unlikely that there will be such a title somewhere, it is easier to make it yourself. Many colors with different codes are on the English wiki . - AivanF.
  • 2
    catch (and the file /usr/lib/X11/rgb.txt) - avp
  • one
    @dimitrius need to install linux :) - αλεχολυτ

1 answer 1

for example, in the x-server source code: https://cgit.freedesktop.org/xorg/xserver/plain/os/oscolor.c