Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cmyk calculations - blue value calculations #1053

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dpp/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ uint32_t rgb(int red, int green, int blue) {
uint32_t cmyk(double c, double m, double y, double k) {
int r = (int)(255 * (1 - c) * (1 - k));
int g = (int)(255 * (1 - m) * (1 - k));
int b = (int)(255 * (1 - y) * (1 - m));
int b = (int)(255 * (1 - y) * (1 - k));
return rgb(r, g, b);
}

Expand Down