Get the HEX value of a color at a specific frame
| 45 | |
| 46 | // Get the HEX value of a color at a specific frame |
| 47 | std::string Color::GetColorHex(int64_t frame_number) { |
| 48 | |
| 49 | int r = red.GetInt(frame_number); |
| 50 | int g = green.GetInt(frame_number); |
| 51 | int b = blue.GetInt(frame_number); |
| 52 | int a = alpha.GetInt(frame_number); |
| 53 | |
| 54 | return QColor( r,g,b,a ).name().toStdString(); |
| 55 | } |
| 56 | |
| 57 | // Get RGBA values for a specific frame as an integer vector |
| 58 | std::vector<int> Color::GetColorRGBA(int64_t frame_number) { |