| 229 | } |
| 230 | |
| 231 | void CapturedColor::setSourceRGB(byte3 _color) |
| 232 | { |
| 233 | sourceRGB = ColorSpaceMath::to_int3(_color); |
| 234 | |
| 235 | auto srgb = static_cast<double3>(sourceRGB) / 255.0; |
| 236 | sourceLch = ColorSpaceMath::xyz_to_lch(ColorSpaceMath::from_sRGB_to_XYZ(srgb) * 100.0); |
| 237 | } |
| 238 | |
| 239 | int3 CapturedColor::getSourceRGB() const |
| 240 | { |
no test coverage detected