MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / nk_rgb

Function nk_rgb

extern/glfw/deps/nuklear.h:7448–7457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7446 return nk_rgba(c[0], c[1], c[2], c[3]);
7447}
7448NK_API struct nk_color
7449nk_rgb(int r, int g, int b)
7450{
7451 struct nk_color ret;
7452 ret.r = (nk_byte)NK_CLAMP(0, r, 255);
7453 ret.g = (nk_byte)NK_CLAMP(0, g, 255);
7454 ret.b = (nk_byte)NK_CLAMP(0, b, 255);
7455 ret.a = (nk_byte)255;
7456 return ret;
7457}
7458NK_API struct nk_color
7459nk_rgb_iv(const int *c)
7460{

Callers 4

nk_rgb_ivFunction · 0.85
nk_rgb_bvFunction · 0.85
nk_style_from_tableFunction · 0.85
nk_draw_color_pickerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected