# Wijmo.Color

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								Color Class
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents a color.</p>
								</div>
								<p>The <a href="wijmo.color.html">Color</a> class parses colors specified as CSS strings and exposes
								their red, green, blue, and alpha channels as read-write properties.</p>
								<p>The <a href="wijmo.color.html">Color</a> class also provides <a href="wijmo.color.html#fromhsb">fromHsb</a> and <a href="wijmo.color.html#fromhsl">fromHsl</a> methods
									for creating colors using the HSB and HSL color models instead of RGB,
									as well as <a href="wijmo.color.html#gethsb">getHsb</a> and <a href="wijmo.color.html#gethsl">getHsl</a> methods for retrieving the color
								components using those color models.</p>
								<p>Finally, the <a href="wijmo.color.html">Color</a> class provides an <a href="wijmo.color.html#interpolate">interpolate</a> method that
									creates colors by interpolating between two colors using the HSL model.
									This method is especially useful for creating color animations with the
								<a href="../index.html#animate">animate</a> method.</p>
								<p>The example below shows how this works:</p>
								<p><a href="/wijmo/demos/Core/Color" target="_blank">Example</a></p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">Color</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Constructors
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="wijmo.color.html#constructor" class="tsd-kind-icon">constructor</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo.color.html#a" class="tsd-kind-icon">a</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo.color.html#b" class="tsd-kind-icon">b</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo.color.html#g" class="tsd-kind-icon">g</a></li>
											<li class="tsd-kind-property tsd-parent-kind-class"><a href="wijmo.color.html#r" class="tsd-kind-icon">r</a></li>
										</ul>
									</section>
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo.color.html#equals" class="tsd-kind-icon">equals</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo.color.html#gethsb" class="tsd-kind-icon">get<wbr>Hsb</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo.color.html#gethsl" class="tsd-kind-icon">get<wbr>Hsl</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class"><a href="wijmo.color.html#tostring" class="tsd-kind-icon">to<wbr>String</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#fromhsb" class="tsd-kind-icon">from<wbr>Hsb</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#fromhsl" class="tsd-kind-icon">from<wbr>Hsl</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#fromrgba" class="tsd-kind-icon">from<wbr>Rgba</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#fromstring" class="tsd-kind-icon">from<wbr>String</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#interpolate" class="tsd-kind-icon">interpolate</a></li>
											<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="wijmo.color.html#toopaque" class="tsd-kind-icon">to<wbr>Opaque</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Constructors</h2>
							<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
								<a name="constructor" class="tsd-anchor"></a>
								<h3>constructor</h3>
								<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">new <wbr>Color<span class="tsd-signature-symbol">(</span>color<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Initializes a new <a href="wijmo.color.html">Color</a> from a CSS color specification.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>color: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<div class="lead">
														<p>CSS color specification.</p>
													</div>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="a" class="tsd-anchor"></a>
								<h3>a</h3>
								<div class="tsd-signature tsd-kind-icon">a<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the alpha component of this <a href="wijmo.color.html">Color</a>,
										in a range from 0 to 1 (zero is transparent, one is solid).</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="b" class="tsd-anchor"></a>
								<h3>b</h3>
								<div class="tsd-signature tsd-kind-icon">b<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the blue component of this <a href="wijmo.color.html">Color</a>,
										in a range from 0 to 255.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="g" class="tsd-anchor"></a>
								<h3>g</h3>
								<div class="tsd-signature tsd-kind-icon">g<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the green component of this <a href="wijmo.color.html">Color</a>,
										in a range from 0 to 255.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
								<a name="r" class="tsd-anchor"></a>
								<h3>r</h3>
								<div class="tsd-signature tsd-kind-icon">r<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Gets or sets the red component of this <a href="wijmo.color.html">Color</a>,
										in a range from 0 to 255.</p>
									</div>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="equals" class="tsd-anchor"></a>
								<h3>equals</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">equals<span class="tsd-signature-symbol">(</span>clr<span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Returns true if a <a href="wijmo.color.html">Color</a> has the same value as this <a href="wijmo.color.html">Color</a>.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>clr: <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h5>
												<div class="tsd-comment">
													<p><a href="wijmo.color.html">Color</a> to compare to this <a href="wijmo.color.html">Color</a>.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="gethsb" class="tsd-anchor"></a>
								<h3>getHsb</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Hsb<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets an array with this color's HSB components.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="gethsl" class="tsd-anchor"></a>
								<h3>getHsl</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">get<wbr>Hsl<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets an array with this color's HSL components.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
								<a name="tostring" class="tsd-anchor"></a>
								<h3>toString</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
									<li class="tsd-signature tsd-kind-icon">to<wbr>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets a string representation of this <a href="wijmo.color.html">Color</a>.</p>
											</div>
										</div>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="fromhsb" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> fromHsb</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">from<wbr>Hsb<span class="tsd-signature-symbol">(</span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, s<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, a<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Creates a new <a href="wijmo.color.html">Color</a> using the specified HSB values.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>h: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Hue value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5>s: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Saturation value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5>b: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Brightness value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> a: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Alpha value, from 0 to 1.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="fromhsl" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> fromHsl</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">from<wbr>Hsl<span class="tsd-signature-symbol">(</span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, s<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, l<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, a<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Creates a new <a href="wijmo.color.html">Color</a> using the specified HSL values.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>h: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Hue value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5>s: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Saturation value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5>l: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Lightness value, from 0 to 1.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> a: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Alpha value, from 0 to 1.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="fromrgba" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> fromRgba</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">from<wbr>Rgba<span class="tsd-signature-symbol">(</span>r<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, g<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, b<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, a<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Creates a new <a href="wijmo.color.html">Color</a> using the specified RGBA color channel values.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>r: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Value for the red channel, from 0 to 255.</p>
												</div>
											</li>
											<li>
												<h5>g: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Value for the green channel, from 0 to 255.</p>
												</div>
											</li>
											<li>
												<h5>b: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Value for the blue channel, from 0 to 255.</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> a: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Value for the alpha channel, from 0 to 1.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="fromstring" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> fromString</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">from<wbr>String<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Creates a new <a href="wijmo.color.html">Color</a> from a CSS color string.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>value: <span class="tsd-signature-type">string</span></h5>
												<div class="tsd-comment">
													<p>String containing a CSS color specification.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
										<p>A new <a href="wijmo.color.html">Color</a>, or null if the string cannot be parsed into a color.</p>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="interpolate" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> interpolate</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">interpolate<span class="tsd-signature-symbol">(</span>c1<span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a>, c2<span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a>, pct<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Creates a <a href="wijmo.color.html">Color</a> by interpolating between two colors.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>c1: <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h5>
												<div class="tsd-comment">
													<p>First color.</p>
												</div>
											</li>
											<li>
												<h5>c2: <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h5>
												<div class="tsd-comment">
													<p>Second color.</p>
												</div>
											</li>
											<li>
												<h5>pct: <span class="tsd-signature-type">number</span></h5>
												<div class="tsd-comment">
													<p>Value between zero and one that determines how close the
													interpolation should be to the second color.</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a name="toopaque" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagStatic">Static</span> toOpaque</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
									<li class="tsd-signature tsd-kind-icon">to<wbr>Opaque<span class="tsd-signature-symbol">(</span>c<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, bkg<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="wijmo.color.html" class="tsd-signature-type">Color</a></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Gets the closest opaque color to a given color.</p>
											</div>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>c: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<p><a href="wijmo.color.html">Color</a> to be converted to an opaque color
													(the color may also be specified as a string).</p>
												</div>
											</li>
											<li>
												<h5><span class="tsd-flag ts-flagOptional">Optional</span> bkg: <span class="tsd-signature-type">any</span></h5>
												<div class="tsd-comment">
													<p>Background color to use when removing the transparency
													(defaults to white).</p>
												</div>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <a href="wijmo.color.html" class="tsd-signature-type">Color</a></h4>
									</li>
								</ul>
							</section>
						</section>
					</div>