| 44 | } |
| 45 | |
| 46 | void 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 | |
| 56 | void Plot::setColor(const float pRed, const float pGreen, |
| 57 | const float pBlue, const float pAlpha) |
no test coverage detected