printfRGB

add %k and %K type specifier to GNU printf for RBG colors
git clone https://noulin.net/git/printfRGB.git
Log | Files | Refs | README | LICENSE

README.md (205B)


      1 # printfRGB
      2 add %k and %K type specifier to GNU printf for RBG colors
      3 
      4 - %k foreground hex color (uint32_t) 0x00RRGGBB
      5 - %K background hex color
      6 
      7 ```
      8   printf("%k%KRGB color" RST, 0x99EEFF, 0x666666);
      9 ```