mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +00:00
LibGfx: Remove now-unused Color::from_cmyk()
`CMYKBitmap::to_low_quality_rgb()` morally still does the same thing, but it has a slightly more scary name, and it doesn't use this exact function. So let's toss it :^)
This commit is contained in:
parent
9c762b9650
commit
d60758a947
Notes:
sideshowbarker
2024-07-16 23:52:22 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/d60758a947 Pull-request: https://github.com/SerenityOS/serenity/pull/23024 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 0 additions and 9 deletions
|
@ -74,15 +74,6 @@ public:
|
|||
static constexpr Color from_rgb(unsigned rgb) { return Color(rgb | 0xff000000); }
|
||||
static constexpr Color from_argb(unsigned argb) { return Color(argb); }
|
||||
|
||||
static constexpr Color from_cmyk(float c, float m, float y, float k)
|
||||
{
|
||||
auto r = static_cast<u8>(255.0f * (1.0f - c) * (1.0f - k));
|
||||
auto g = static_cast<u8>(255.0f * (1.0f - m) * (1.0f - k));
|
||||
auto b = static_cast<u8>(255.0f * (1.0f - y) * (1.0f - k));
|
||||
|
||||
return Color(r, g, b);
|
||||
}
|
||||
|
||||
static constexpr Color from_yuv(YUV const& yuv) { return from_yuv(yuv.y, yuv.u, yuv.v); }
|
||||
static constexpr Color from_yuv(float y, float u, float v)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue