EVOLUTION-MANAGER
Edit File: mnsl.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Converts a Munsell colour to hex</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for mnsl {munsell}"><tr><td>mnsl {munsell}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Converts a Munsell colour to hex</h2> <h3>Description</h3> <p>Take a character string representation of a Munsell colour and returns the hex specification of that colour </p> <h3>Usage</h3> <pre> mnsl(col, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>col</code></td> <td> <p>a character string representing a Munsell colour.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>passed on to <code><a href="in_gamut.html">in_gamut</a></code>. Use <code>fix = TRUE</code> to fix "bad" colours</p> </td></tr> </table> <h3>Details</h3> <p>Munsell colours are specified by hue, value and chroma. They take a form like "5PB 5/10" where the first characters represent the hue, followed by a space then the value and chroma separated by a "/". In this package value should be an integer in 0:10 and chroma an even number at most 24. Note that not all possible specifications result in representable colours. </p> <h3>Value</h3> <p>a character string specification of a hex colour </p> <h3>See Also</h3> <p><code><a href="check_mnsl.html">check_mnsl</a></code>,<code><a href="in_gamut.html">in_gamut</a></code>, <code><a href="hvc2mnsl.html">hvc2mnsl</a></code> </p> <h3>Examples</h3> <pre> mnsl2hex("5PB 5/10") # use a munsell colour in a plot plot.new() rect(0, 0, 1 ,1 , col = mnsl("5R 5/10")) </pre> <hr /><div style="text-align: center;">[Package <em>munsell</em> version 0.5.0 <a href="00Index.html">Index</a>]</div> </body></html>