mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-28 21:37:50 +02:00
Fixed color interpolation bug
This commit is contained in:
@ -41,10 +41,4 @@ namespace color {
|
||||
g += m;
|
||||
b += m;
|
||||
}
|
||||
|
||||
inline void interpRGB(float ar, float ag, float ab, float br, float bg, float bb, float& or, float& og, float& ob, float ratio) {
|
||||
or = ar + (br - ar) * ratio;
|
||||
og = ag + (bg - ag) * ratio;
|
||||
ob = ab + (bb - ab) * ratio;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user