Skip to content

Commit

Permalink
CMYK function implemented (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltairFromAquila committed Nov 8, 2023
1 parent a1546a0 commit 7825d0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/color/Color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ std::string Color::lch(bool includeAlpha)

std::string Color::cmyk()
{
return "";
const std::floating_point auto cyan = Number::decimal<double>(1.);
const std::floating_point auto magenta = Number::decimal<double>(1.);
const std::floating_point auto yellow = Number::decimal<double>(1.);
const std::floating_point auto key = Number::decimal<double>(1.);

return fmt::format("cmyk({:.2f}, {:.2f}, {:.2f}, {:.2f})", cyan, magenta, yellow, key);
}

}

0 comments on commit 7825d0a

Please sign in to comment.