# C1.WPF.C1HslColor.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1HslColor__ctor_" data-uid="C1.WPF.C1HslColor.#ctor*">C1HslColor Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1HslColor__ctor_" data-uid="C1.WPF.C1HslColor.#ctor*"></a>
<h4 id="C1_WPF_C1HslColor__ctor_System_Single_System_Single_System_Single_" data-uid="C1.WPF.C1HslColor.#ctor(System.Single,System.Single,System.Single)">C1HslColor(float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.C1HslColor.html">C1HslColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1HslColor(float h, float s, float l)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(h As Single, s As Single, l As Single)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">h</span></td>
      <td><p>Hue is a value between 0 and 1.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">s</span></td>
      <td><p>Saturation is a value between 0 and 1.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">l</span></td>
      <td><p>Luminance is a value between 0 and 1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1HslColor__ctor_" data-uid="C1.WPF.C1HslColor.#ctor*"></a>
<h4 id="C1_WPF_C1HslColor__ctor_System_Byte_System_Single_System_Single_System_Single_" data-uid="C1.WPF.C1HslColor.#ctor(System.Byte,System.Single,System.Single,System.Single)">C1HslColor(byte, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.C1HslColor.html">C1HslColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1HslColor(byte a, float h, float s, float l)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(a As Byte, h As Single, s As Single, l As Single)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a></td>
      <td><span class="parametername">a</span></td>
      <td><p>Alpha channel.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">h</span></td>
      <td><p>Hue is a value between 0 and 1.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">s</span></td>
      <td><p>Saturation is a value between 0 and 1.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">l</span></td>
      <td><p>Luminance is a value between 0 and 1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1HslColor__ctor_" data-uid="C1.WPF.C1HslColor.#ctor*"></a>
<h4 id="C1_WPF_C1HslColor__ctor_System_Windows_Media_Color_" data-uid="C1.WPF.C1HslColor.#ctor(System.Windows.Media.Color)">C1HslColor(Color)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.C1HslColor.html">C1HslColor</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1HslColor(Color rgbColor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rgbColor As Color)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.color">Color</a></td>
      <td><span class="parametername">rgbColor</span></td>
      <td><p>RGB color used to initialize the HSL color.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
