Skip to content

Commit 5483952

Browse files
ali77ghvil02
andauthored
Update src/conversions/rgb_cmyk_conversion.rs
Co-authored-by: Piotr Idzik <[email protected]>
1 parent 6d83619 commit 5483952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conversions/rgb_cmyk_conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
///
1313
/// ### Returns
1414
/// (C, M, Y, K)
15-
pub fn rgb_to_cmyk(r: u8, g: u8, b: u8) -> (u8, u8, u8, u8) {
15+
pub fn rgb_to_cmyk(rgb: (u8, u8, u8)) -> (u8, u8, u8, u8) {
1616
// Safety: no need to check if input is positive and less than 255 because it's u8
1717

1818
// change scale from [0,255] to [0,1]

0 commit comments

Comments
 (0)