--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Converts the CMYK colour to RGB. Most colour experts strongly suggest that this is not a good idea (some even suggesting that it's a very bad idea). CMYK represents additive percentages of inks on white paper, whereas RGB represents mixed colour intensities on a black screen.
- !ruby/struct:SM::Flow::P 
  body: However, the colour conversion can be done, and there are two different methods for the conversion that provide slightly different results. Adobe PDF conversions are done with the first form.
- !ruby/struct:SM::Flow::VERB 
  body: "    # Adobe PDF Display Formula\n  r = 1.0 - min(1.0, c + k)\n  g = 1.0 - min(1.0, m + k)\n  b = 1.0 - min(1.0, y + k)\n\n    # Other\n  r = 1.0 - (c * (1.0 - k) + k)\n  g = 1.0 - (m * (1.0 - k) + k)\n  b = 1.0 - (y * (1.0 - k) + k)\n"
- !ruby/struct:SM::Flow::P 
  body: "If we have a CMYK colour of [33% 66% 83% 25%], the first method will give an approximate RGB colour of (107, 23, 0) or #6b1700. The second method will give an approximate RGB colour of (128, 65, 33) or #804121. Which is correct? Although the colours may seem to be drastically different in the RGB colour space, they are very similar colours, differing mostly in intensity. The first is a darker, slightly redder brown; the second is a lighter brown."
- !ruby/struct:SM::Flow::P 
  body: "Because of this subtlety, both methods are now offered for conversion in color-tools 1.2 or later. The Adobe method is not used by default; to enable it, pass <tt>true</tt> to #to_rgb."
- !ruby/struct:SM::Flow::P 
  body: Future versions of color-tools may offer other conversion mechanisms that offer greater colour fidelity.
full_name: Color::CMYK#to_rgb
is_singleton: false
name: to_rgb
params: (use_adobe_method = false)
visibility: public
