This commit is contained in:
daylinmorgan 2023-04-27 14:21:35 +00:00
parent fcd8edd39d
commit 417f91f961
4 changed files with 71 additions and 116 deletions

View file

@ -123,12 +123,6 @@ window.addEventListener('DOMContentLoaded', main);
g*: uint8 ## Green 0-255
b*: uint8 ## Blue 0-255
a*: uint8 ## Alpha 0-255">ColorRGBA</a></li>
<li><a class="reference" href="#ColorRGBX"
title="ColorRGBX = object
r*: uint8 ## Red 0-a
g*: uint8 ## Green 0-a
b*: uint8 ## Blue 0-a
a*: uint8 ## Alpha 0-255">ColorRGBX</a></li>
<li><a class="reference" href="#InvalidColor"
title="InvalidColor = object of ValueError">InvalidColor</a></li>
<li><a class="reference" href="#SomeColor"
@ -200,8 +194,6 @@ window.addEventListener('DOMContentLoaded', main);
<ul class="simple nested-toc-section">rgba
<li><a class="reference" href="#rgba%2CColor"
title="rgba(c: Color): ColorRGBA">rgba(c: Color): ColorRGBA</a></li>
<li><a class="reference" href="#rgba%2CColorRGBX"
title="rgba(c: ColorRGBX): ColorRGBA">rgba(c: ColorRGBX): ColorRGBA</a></li>
<li><a class="reference" href="#rgba%2Cuint8%2Cuint8%2Cuint8%2Cuint8"
title="rgba(r, g, b, a: uint8): ColorRGBA">rgba(r, g, b, a: uint8): ColorRGBA</a></li>
@ -249,7 +241,7 @@ window.addEventListener('DOMContentLoaded', main);
</div>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L1"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L1"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
@ -273,7 +265,7 @@ class="link-seesrc" target="_blank">Source</a>
Main color type, float32 points
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L9"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L9"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L9" class="link-seesrc" target="_blank" >Edit</a>
@ -289,9 +281,9 @@ class="link-seesrc" target="_blank">Source</a>
HSL attempts to resemble more perceptual color models
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L39"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L32"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L39" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L32" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -305,7 +297,7 @@ class="link-seesrc" target="_blank">Source</a>
Color stored as 3 uint8s
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L17"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L17"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L17" class="link-seesrc" target="_blank" >Edit</a>
@ -322,27 +314,10 @@ class="link-seesrc" target="_blank">Source</a>
Color stored as 4 uint8s
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L24"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L24"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L24" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="ColorRGBX">
<dt><pre><a href="chroma.html#ColorRGBX"><span class="Identifier">ColorRGBX</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">r</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Red 0-a</span>
<span class="Identifier">g</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Green 0-a</span>
<span class="Identifier">b</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Blue 0-a</span>
<span class="Identifier">a</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Alpha 0-255</span>
</pre></dt>
<dd>
Premultiplied alpha RGBA color stored as 4 uint8s
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L31"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="InvalidColor">
@ -351,9 +326,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L47"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L40"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L47" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L40" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -363,9 +338,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L45"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L38"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L45" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L38" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -380,9 +355,9 @@ class="link-seesrc" target="_blank">Source</a>
Returns colors as &quot;(r, g, b, a)&quot;.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L250"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L231"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L250" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L231" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -392,9 +367,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L240"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L221"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L240" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L221" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -404,9 +379,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L242"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L223"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L242" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L223" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -416,9 +391,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L241"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L222"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L241" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L222" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -428,9 +403,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L222"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L203"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L222" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L203" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -440,9 +415,9 @@ class="link-seesrc" target="_blank">Source</a>
convert ColorHSL to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L181"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L162"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L181" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L162" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -452,9 +427,9 @@ class="link-seesrc" target="_blank">Source</a>
Convert ColorRGB to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L99"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L80"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L99" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L80" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -464,9 +439,9 @@ class="link-seesrc" target="_blank">Source</a>
Convert ColorRGBA to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L113"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L94"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L113" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L94" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -483,9 +458,9 @@ Creates from floats like:<ul class="simple"><li>color(1,0,0) -&gt; red</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L49"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L42"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L49" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L42" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -495,9 +470,9 @@ class="link-seesrc" target="_blank">Source</a>
Hashes a Color - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L254"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L235"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L254" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L235" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -507,9 +482,9 @@ class="link-seesrc" target="_blank">Source</a>
Hashes a ColorHSL - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L266"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L247"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L266" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L247" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -519,9 +494,9 @@ class="link-seesrc" target="_blank">Source</a>
Hashes a ColorRGB - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L258"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L239"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L258" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L239" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -531,9 +506,9 @@ class="link-seesrc" target="_blank">Source</a>
Hashes a ColorRGB - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L262"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L243"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L262" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L243" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -543,9 +518,9 @@ class="link-seesrc" target="_blank">Source</a>
convert Color to ColorHSL
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L123"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L104"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L123" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L104" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -555,9 +530,9 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L74"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L67"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L74" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L67" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -567,9 +542,9 @@ class="link-seesrc" target="_blank">Source</a>
Convert Color to ColorRGB
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L93"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L74"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L93" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L74" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -583,9 +558,9 @@ Creates from uint8s like:<ul class="simple"><li>rgba(255,0,0) -&gt; red</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L58"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L51"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L51" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -595,21 +570,9 @@ class="link-seesrc" target="_blank">Source</a>
Convert Color to ColorRGBA
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L106"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L87"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L106" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rgba,ColorRGBX">
<dt><pre><span class="Keyword">proc</span> <a href="#rgba%2CColorRGBX"><span class="Identifier">rgba</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorRGBX"><span class="Identifier">ColorRGBX</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a> {.<span class="Identifier">inline</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
Convert a premultiplied alpha RGBA to a straight alpha RGBA.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L81"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L81" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L87" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -625,9 +588,9 @@ Creates from uint8s like:<ul class="simple"><li>rgba(255,0,0,255) -&gt; red</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L65"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L58"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L65" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -637,9 +600,9 @@ class="link-seesrc" target="_blank">Source</a>
Allows conversion of transformation of a color in any color space into any other color space.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L225"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L206"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L225" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L206" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -653,9 +616,9 @@ Formats color as hex (upper case):<ul class="simple"><li>red -&gt; FF0000</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L270"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L251"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L270" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L251" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -671,9 +634,9 @@ Formats color as hex (upper case):<ul class="simple"><li>red -&gt; FF0000FF</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L279"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L260"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L279" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L260" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -687,9 +650,9 @@ Formats color as HTML hex (upper case):<ul class="simple"><li>red -&gt; #FF0000<
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L290"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L271"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L290" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L271" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -703,9 +666,9 @@ Formats color as HTML 3 hex numbers (upper case):<ul class="simple"><li>red -&gt
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L297"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L278"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L297" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L278" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -719,9 +682,9 @@ Parses colors in html's rgb format:<ul class="simple"><li>red -&gt; rgb(255, 0,
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L306"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L287"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L306" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L287" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -735,9 +698,9 @@ Parses colors in html's rgb format:<ul class="simple"><li>red -&gt; rgb(255, 0,
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L317"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/chroma.nim#L298"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L317" class="link-seesrc" target="_blank" >Edit</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L298" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
@ -751,7 +714,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:11:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:21:34 UTC</small>
</div>
</div>
</div>

View file

@ -1,7 +1,6 @@
Color catppuccin/chroma.html#Color chroma: Color
ColorRGB catppuccin/chroma.html#ColorRGB chroma: ColorRGB
ColorRGBA catppuccin/chroma.html#ColorRGBA chroma: ColorRGBA
ColorRGBX catppuccin/chroma.html#ColorRGBX chroma: ColorRGBX
ColorHSL catppuccin/chroma.html#ColorHSL chroma: ColorHSL
SomeColor catppuccin/chroma.html#SomeColor chroma: SomeColor
InvalidColor catppuccin/chroma.html#InvalidColor chroma: InvalidColor
@ -9,7 +8,6 @@ color catppuccin/chroma.html#color,float32,float32,float32,float32 chroma: color
rgb catppuccin/chroma.html#rgb,uint8,uint8,uint8 chroma: rgb(r, g, b: uint8): ColorRGB
rgba catppuccin/chroma.html#rgba,uint8,uint8,uint8,uint8 chroma: rgba(r, g, b, a: uint8): ColorRGBA
hsl catppuccin/chroma.html#hsl,float32,float32,float32 chroma: hsl(h, s, l: float32): ColorHSL
rgba catppuccin/chroma.html#rgba,ColorRGBX chroma: rgba(c: ColorRGBX): ColorRGBA
rgb catppuccin/chroma.html#rgb,Color chroma: rgb(c: Color): ColorRGB
color catppuccin/chroma.html#color,ColorRGB chroma: color(c: ColorRGB): Color
rgba catppuccin/chroma.html#rgba,Color chroma: rgba(c: Color): ColorRGBA

View file

@ -223,7 +223,7 @@ window.addEventListener('DOMContentLoaded', main);
</div>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin.nim#L1"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin.nim#L1"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
@ -269,7 +269,7 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L31"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/palette.nim#L31"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
@ -304,7 +304,7 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L4"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/palette.nim#L4"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L4" class="link-seesrc" target="_blank" >Edit</a>
@ -340,7 +340,7 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L58"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/palette.nim#L58"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
@ -375,7 +375,7 @@ class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L85"
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.0/src/catppuccin/palette.nim#L85"
class="link-seesrc" target="_blank">Source</a>
&nbsp;&nbsp;<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L85" class="link-seesrc" target="_blank" >Edit</a>
@ -386,7 +386,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="section" id="19">
<h1><a class="toc-backref" href="#19">Exports</a></h1>
<dl class="item">
<a href="catppuccin/chroma.html#color,Color"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#asHsl,SomeColor"><span class="Identifier">asHsl</span></a>, <a href="catppuccin/chroma.html#asColor,SomeColor"><span class="Identifier">asColor</span></a>, <a href="catppuccin/chroma.html#toHtmlHexTiny,Color"><span class="Identifier">toHtmlHexTiny</span></a>, <a href="catppuccin/chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a>, <a href="catppuccin/chroma.html#Color"><span class="Identifier">Color</span></a>, <a href="catppuccin/chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a>, <a href="catppuccin/chroma.html#rgb,uint8,uint8,uint8"><span class="Identifier">rgb</span></a>, <a href="catppuccin/chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a>, <a href="catppuccin/chroma.html#rgba,ColorRGBX"><span class="Identifier">rgba</span></a>, <a href="catppuccin/chroma.html#color,float32,float32,float32,float32"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#toHtmlHex,Color"><span class="Identifier">toHtmlHex</span></a>, <a href="catppuccin/chroma.html#hsl,float32,float32,float32"><span class="Identifier">hsl</span></a>, <a href="catppuccin/chroma.html#asRgb,SomeColor"><span class="Identifier">asRgb</span></a>, <a href="catppuccin/chroma.html#toHtmlRgb,Color"><span class="Identifier">toHtmlRgb</span></a>, <a href="catppuccin/chroma.html#hash,ColorRGBA"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a>, <a href="catppuccin/chroma.html#rgb,Color"><span class="Identifier">rgb</span></a>, <a href="catppuccin/chroma.html#toHtmlRgba,Color"><span class="Identifier">toHtmlRgba</span></a>, <a href="catppuccin/chroma.html#hsl,Color"><span class="Identifier">hsl</span></a>, <a href="catppuccin/chroma.html#hash,ColorRGB"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#toHex,Color"><span class="Identifier">toHex</span></a>, <a href="catppuccin/chroma.html#$,Color"><span class="Identifier">$</span></a>, <a href="catppuccin/chroma.html#InvalidColor"><span class="Identifier">InvalidColor</span></a>, <a href="catppuccin/chroma.html#color,ColorRGBA"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#color,ColorHSL"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#ColorRGBX"><span class="Identifier">ColorRGBX</span></a>, <a href="catppuccin/chroma.html#to,SomeColor,typedesc[T]"><span class="Identifier">to</span></a>, <a href="catppuccin/chroma.html#hash,ColorHSL"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#color,ColorRGB"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#toHexAlpha,Color"><span class="Identifier">toHexAlpha</span></a>, <a href="catppuccin/chroma.html#hash,Color"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#rgba,uint8,uint8,uint8,uint8"><span class="Identifier">rgba</span></a>, <a href="catppuccin/chroma.html#rgba,Color"><span class="Identifier">rgba</span></a>
<a href="catppuccin/chroma.html#rgb,uint8,uint8,uint8"><span class="Identifier">rgb</span></a>, <a href="catppuccin/chroma.html#asHsl,SomeColor"><span class="Identifier">asHsl</span></a>, <a href="catppuccin/chroma.html#asColor,SomeColor"><span class="Identifier">asColor</span></a>, <a href="catppuccin/chroma.html#toHtmlHexTiny,Color"><span class="Identifier">toHtmlHexTiny</span></a>, <a href="catppuccin/chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a>, <a href="catppuccin/chroma.html#color,ColorRGB"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#rgb,Color"><span class="Identifier">rgb</span></a>, <a href="catppuccin/chroma.html#color,ColorHSL"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a>, <a href="catppuccin/chroma.html#rgba,uint8,uint8,uint8,uint8"><span class="Identifier">rgba</span></a>, <a href="catppuccin/chroma.html#to,SomeColor,typedesc[T]"><span class="Identifier">to</span></a>, <a href="catppuccin/chroma.html#toHtmlHex,Color"><span class="Identifier">toHtmlHex</span></a>, <a href="catppuccin/chroma.html#hsl,float32,float32,float32"><span class="Identifier">hsl</span></a>, <a href="catppuccin/chroma.html#asRgb,SomeColor"><span class="Identifier">asRgb</span></a>, <a href="catppuccin/chroma.html#toHtmlRgb,Color"><span class="Identifier">toHtmlRgb</span></a>, <a href="catppuccin/chroma.html#hash,ColorRGBA"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a>, <a href="catppuccin/chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a>, <a href="catppuccin/chroma.html#toHtmlRgba,Color"><span class="Identifier">toHtmlRgba</span></a>, <a href="catppuccin/chroma.html#hsl,Color"><span class="Identifier">hsl</span></a>, <a href="catppuccin/chroma.html#hash,ColorRGB"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#toHex,Color"><span class="Identifier">toHex</span></a>, <a href="catppuccin/chroma.html#$,Color"><span class="Identifier">$</span></a>, <a href="catppuccin/chroma.html#InvalidColor"><span class="Identifier">InvalidColor</span></a>, <a href="catppuccin/chroma.html#color,float32,float32,float32,float32"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#color,Color"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#color,ColorRGBA"><span class="Identifier">color</span></a>, <a href="catppuccin/chroma.html#hash,ColorHSL"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#Color"><span class="Identifier">Color</span></a>, <a href="catppuccin/chroma.html#toHexAlpha,Color"><span class="Identifier">toHexAlpha</span></a>, <a href="catppuccin/chroma.html#hash,Color"><span class="Identifier">hash</span></a>, <a href="catppuccin/chroma.html#rgba,Color"><span class="Identifier">rgba</span></a>
</dl></div>
</div>
@ -396,7 +396,7 @@ class="link-seesrc" target="_blank">Source</a>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:11:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:21:34 UTC</small>
</div>
</div>
</div>

View file

@ -115,10 +115,6 @@ window.addEventListener('DOMContentLoaded', main);
<li><a class="reference external"
data-doc-search-tag="chroma: ColorRGBA" href="catppuccin/chroma.html#ColorRGBA">chroma: ColorRGBA</a></li>
</ul></dd>
<dt><a name="ColorRGBX" href="#ColorRGBX"><span>ColorRGBX:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="chroma: ColorRGBX" href="catppuccin/chroma.html#ColorRGBX">chroma: ColorRGBX</a></li>
</ul></dd>
<dt><a name="frappe" href="#frappe"><span>frappe:</span></a></dt><dd><ul class="simple">
<li><a class="reference external"
data-doc-search-tag="catppuccin: frappe" href="index.html#frappe">catppuccin: frappe</a></li>
@ -165,8 +161,6 @@ window.addEventListener('DOMContentLoaded', main);
<li><a class="reference external"
data-doc-search-tag="chroma: rgba(c: Color): ColorRGBA" href="catppuccin/chroma.html#rgba%2CColor">chroma: rgba(c: Color): ColorRGBA</a></li>
<li><a class="reference external"
data-doc-search-tag="chroma: rgba(c: ColorRGBX): ColorRGBA" href="catppuccin/chroma.html#rgba%2CColorRGBX">chroma: rgba(c: ColorRGBX): ColorRGBA</a></li>
<li><a class="reference external"
data-doc-search-tag="chroma: rgba(r, g, b, a: uint8): ColorRGBA" href="catppuccin/chroma.html#rgba%2Cuint8%2Cuint8%2Cuint8%2Cuint8">chroma: rgba(r, g, b, a: uint8): ColorRGBA</a></li>
</ul></dd>
<dt><a name="SomeColor" href="#SomeColor"><span>SomeColor:</span></a></dt><dd><ul class="simple">
@ -206,7 +200,7 @@ window.addEventListener('DOMContentLoaded', main);
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:11:40 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:21:34 UTC</small>
</div>
</div>
</div>