Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions

→‎Color Spaces: More color-related tasks.
(→‎Color Spaces: More color-related tasks.)
Line 93:
* Conversion from sRGB to HSL, HSV and CMYK.
:That would not be Color Space conversion. You can not convert a color space into a color model. sRGB is a color space that uses RGB color model. HSL, HSV and CMYK are color models. Maybe you mean color model conversion? However, conversion to CMYK requires information about the inks, paper and printing device used. In practice, it requires color space conversion, too. --[[User:PauliKL|PauliKL]] 15:29, 2 December 2009 (UTC)
:: Ok, how about: [[Color Model Conversion]]. Convert a value from RGB to HSL, from HSL to HSV, HSV to YUV, and from YUV to RGB. Or using some other chain order that can better take advantage of color model similarities. --[[User:Short Circuit|Michael Mol]] 13:34, 8 October 2010 (UTC)
* Generate color triad. Given a color, return the two colors which are +/- 120 degrees on the color wheel. --[[User:Short Circuit|Michael Mol]] 13:34, 8 October 2010 (UTC)
* Desaturate. Given four colors (#ffff00;, #0000ff;, and #00ffff), desaturate them. --[[User:Short Circuit|Michael Mol]] 13:34, 8 October 2010 (UTC)
 
===Terminal Control===