MCPcopy Create free account
hub / github.com/arrayfire/forge / setColor

Method setColor

src/api/cpp/histogram.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Histogram::setColor(const Color pColor)
45{
46 float r = (((int) pColor >> 24 ) & 0xFF ) / 255.f;
47 float g = (((int) pColor >> 16 ) & 0xFF ) / 255.f;
48 float b = (((int) pColor >> 8 ) & 0xFF ) / 255.f;
49 float a = (((int) pColor ) & 0xFF ) / 255.f;
50
51 FG_THROW(fg_set_histogram_color(get(), r, g, b, a));
52}
53
54void Histogram::setColor(const float pRed, const float pGreen,
55 const float pBlue, const float pAlpha)

Callers

nothing calls this directly

Calls 1

fg_set_histogram_colorFunction · 0.85

Tested by

no test coverage detected