Source Code : 
on cmykrgb(cmyk)
 
    
set r to 255 - (round (2.55 * (k)))
    
set g to 255 - (round (2.55 * (k)))
    
set b to 255 - (round (2.55 * (k)))
 
    if (
0then set r to 0
    
if (0then set g to 0
    
if (0then set b to 0

[Login or Register to remove this advertisement]

 
    
return {rgb}
end cmykrgb 
Xcode Reviewed by Xcode on . convert text from RGB to CMYK color values on cmykrgb(c, m, y, k) set r to 255 - (round (2.55 * (c + k))) set g to 255 - (round (2.55 * (m + k))) set b to 255 - (round (2.55 * (y + k))) if (r < 0) then set r to 0 if (g < 0) then set g to 0 if (b < 0) then set b to 0 Rating: 5