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

Method setColor

src/api/cpp/plot.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

fg_set_histogram_colorFunction · 0.45
fg_set_plot_colorFunction · 0.45
fg_set_surface_colorFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

fg_set_plot_colorFunction · 0.85

Tested by

no test coverage detected