catppuccin-nim/catppuccin/chroma.html

725 lines
50 KiB
HTML
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- CSS -->
<title>catppuccin/chroma</title>
<link rel="stylesheet" type="text/css" href="../nimdoc.out.css">
<script type="text/javascript" src="../dochack.js"></script>
<script type="text/javascript">
function main() {
var pragmaDots = document.getElementsByClassName("pragmadots");
for (var i = 0; i < pragmaDots.length; i++) {
pragmaDots[i].onclick = function(event) {
// Hide tease
event.target.parentNode.style.display = "none";
// Show actual
event.target.parentNode.nextElementSibling.style.display = "inline";
}
}
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
if (toggleSwitch !== null) {
toggleSwitch.addEventListener('change', switchTheme, false);
}
var currentTheme = localStorage.getItem('theme');
if (!currentTheme && window.matchMedia('(prefers-color-scheme: dark)').matches) {
currentTheme = 'dark';
}
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
if (currentTheme === 'dark' && toggleSwitch !== null) {
toggleSwitch.checked = true;
}
}
}
window.addEventListener('DOMContentLoaded', main);
</script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">catppuccin/chroma</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
&nbsp;&nbsp;&nbsp; <em>Dark Mode</em>
</div>
<div id="global-links">
<ul class="simple">
<li>
<a href="../theindex.html">Index</a>
</li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="text" id="searchInput"
onkeyup="search()" />
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#7" id="57">Types</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#Color"
title="Color = object
r*: float32 ## red (0-1)
g*: float32 ## green (0-1)
b*: float32 ## blue (0-1)
a*: float32 ## alpha (0-1, 0 is fully transparent)">Color</a></li>
<li><a class="reference" href="#ColorHSL"
title="ColorHSL = object
h*: float32 ## hue 0 to 360
s*: float32 ## saturation 0 to 100
l*: float32 ## lightness 0 to 100">ColorHSL</a></li>
<li><a class="reference" href="#ColorRGB"
title="ColorRGB = object
r*: uint8 ## Red 0-255
g*: uint8 ## Green 0-255
b*: uint8 ## Blue 0-255">ColorRGB</a></li>
<li><a class="reference" href="#ColorRGBA"
title="ColorRGBA = object
r*: uint8 ## Red 0-255
g*: uint8 ## Green 0-255
b*: uint8 ## Blue 0-255
a*: uint8 ## Alpha 0-255">ColorRGBA</a></li>
<li><a class="reference" href="#InvalidColor"
title="InvalidColor = object of ValueError">InvalidColor</a></li>
<li><a class="reference" href="#SomeColor"
title="SomeColor = Color | ColorRGB | ColorRGBA | ColorHSL">SomeColor</a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">$
<li><a class="reference" href="#%24%2CColor"
title="`$`(c: Color): string">`$`(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">asColor
<li><a class="reference" href="#asColor%2CSomeColor"
title="asColor(c: SomeColor): Color">asColor(c: SomeColor): Color</a></li>
</ul>
<ul class="simple nested-toc-section">asHsl
<li><a class="reference" href="#asHsl%2CSomeColor"
title="asHsl(c: SomeColor): ColorHSL">asHsl(c: SomeColor): ColorHSL</a></li>
</ul>
<ul class="simple nested-toc-section">asRgb
<li><a class="reference" href="#asRgb%2CSomeColor"
title="asRgb(c: SomeColor): ColorRGB">asRgb(c: SomeColor): ColorRGB</a></li>
</ul>
<ul class="simple nested-toc-section">color
<li><a class="reference" href="#color%2CColor"
title="color(c: Color): Color">color(c: Color): Color</a></li>
<li><a class="reference" href="#color%2CColorHSL"
title="color(c: ColorHSL): Color">color(c: ColorHSL): Color</a></li>
<li><a class="reference" href="#color%2CColorRGB"
title="color(c: ColorRGB): Color">color(c: ColorRGB): Color</a></li>
<li><a class="reference" href="#color%2CColorRGBA"
title="color(c: ColorRGBA): Color">color(c: ColorRGBA): Color</a></li>
<li><a class="reference" href="#color%2Cfloat32%2Cfloat32%2Cfloat32%2Cfloat32"
title="color(r, g, b: float32; a: float32 = 1.0): Color">color(r, g, b: float32; a: float32 = 1.0): Color</a></li>
</ul>
<ul class="simple nested-toc-section">hash
<li><a class="reference" href="#hash%2CColor"
title="hash(c: Color): Hash">hash(c: Color): Hash</a></li>
<li><a class="reference" href="#hash%2CColorHSL"
title="hash(c: ColorHSL): Hash">hash(c: ColorHSL): Hash</a></li>
<li><a class="reference" href="#hash%2CColorRGB"
title="hash(c: ColorRGB): Hash">hash(c: ColorRGB): Hash</a></li>
<li><a class="reference" href="#hash%2CColorRGBA"
title="hash(c: ColorRGBA): Hash">hash(c: ColorRGBA): Hash</a></li>
</ul>
<ul class="simple nested-toc-section">hsl
<li><a class="reference" href="#hsl%2CColor"
title="hsl(c: Color): ColorHSL">hsl(c: Color): ColorHSL</a></li>
<li><a class="reference" href="#hsl%2Cfloat32%2Cfloat32%2Cfloat32"
title="hsl(h, s, l: float32): ColorHSL">hsl(h, s, l: float32): ColorHSL</a></li>
</ul>
<ul class="simple nested-toc-section">rgb
<li><a class="reference" href="#rgb%2CColor"
title="rgb(c: Color): ColorRGB">rgb(c: Color): ColorRGB</a></li>
<li><a class="reference" href="#rgb%2Cuint8%2Cuint8%2Cuint8"
title="rgb(r, g, b: uint8): ColorRGB">rgb(r, g, b: uint8): ColorRGB</a></li>
</ul>
<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%2Cuint8%2Cuint8%2Cuint8%2Cuint8"
title="rgba(r, g, b, a: uint8): ColorRGBA">rgba(r, g, b, a: uint8): ColorRGBA</a></li>
</ul>
<ul class="simple nested-toc-section">to
<li><a class="reference" href="#to%2CSomeColor%2Ctypedesc%5BT%5D"
title="to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T">to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T</a></li>
</ul>
<ul class="simple nested-toc-section">toHex
<li><a class="reference" href="#toHex%2CColor"
title="toHex(c: Color): string">toHex(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">toHexAlpha
<li><a class="reference" href="#toHexAlpha%2CColor"
title="toHexAlpha(c: Color): string">toHexAlpha(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">toHtmlHex
<li><a class="reference" href="#toHtmlHex%2CColor"
title="toHtmlHex(c: Color): string">toHtmlHex(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">toHtmlHexTiny
<li><a class="reference" href="#toHtmlHexTiny%2CColor"
title="toHtmlHexTiny(c: Color): string">toHtmlHexTiny(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">toHtmlRgb
<li><a class="reference" href="#toHtmlRgb%2CColor"
title="toHtmlRgb(c: Color): string">toHtmlRgb(c: Color): string</a></li>
</ul>
<ul class="simple nested-toc-section">toHtmlRgba
<li><a class="reference" href="#toHtmlRgba%2CColor"
title="toHtmlRgba(c: Color): string">toHtmlRgba(c: Color): string</a></li>
</ul>
</ul>
</li>
</ul>
</div>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"><p>Standalone types/methods ported from treeform/chroma.</p>
<p>See <tt class="docutils literal"><span class="pre"><span class="Identifier">chroma</span></span></tt> <a class="reference external" href="https://github.com/treeform/chroma/blob/master/LICENSE">LICENSE</a>.</p>
</p>
<div class="section" id="7">
<h1><a class="toc-backref" href="#7">Types</a></h1>
<dl class="item">
<div id="Color">
<dt><pre><a href="chroma.html#Color"><span class="Identifier">Color</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">float32</span> <span class="Comment">## red (0-1)</span>
<span class="Identifier">g</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## green (0-1)</span>
<span class="Identifier">b</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## blue (0-1)</span>
<span class="Identifier">a</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## alpha (0-1, 0 is fully transparent)</span>
</pre></dt>
<dd>
Main color type, float32 points
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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>
</dd>
</div>
<div id="ColorHSL">
<dt><pre><a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">h</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## hue 0 to 360</span>
<span class="Identifier">s</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## saturation 0 to 100</span>
<span class="Identifier">l</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Comment">## lightness 0 to 100</span>
</pre></dt>
<dd>
HSL attempts to resemble more perceptual color models
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L32" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="ColorRGB">
<dt><pre><a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</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-255</span>
<span class="Identifier">g</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Green 0-255</span>
<span class="Identifier">b</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Blue 0-255</span>
</pre></dt>
<dd>
Color stored as 3 uint8s
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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>
</dd>
</div>
<div id="ColorRGBA">
<dt><pre><a href="chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</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-255</span>
<span class="Identifier">g</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Green 0-255</span>
<span class="Identifier">b</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint8</span> <span class="Comment">## Blue 0-255</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>
Color stored as 4 uint8s
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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="InvalidColor">
<dt><pre><a href="chroma.html#InvalidColor"><span class="Identifier">InvalidColor</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">ValueError</span></pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L40" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="SomeColor">
<dt><pre><a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a> <span class="Other">=</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a> <span class="Operator">|</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a> <span class="Operator">|</span> <a href="chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a> <span class="Operator">|</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a></pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L38" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
</dl></div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="$,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#%24%2CColor"><span class="Identifier">`$`</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Returns colors as &quot;(r, g, b, a)&quot;.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L231" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="asColor,SomeColor">
<dt><pre><span class="Keyword">proc</span> <a href="#asColor%2CSomeColor"><span class="Identifier">asColor</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a> {.<span class="Identifier">inline</span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L221" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="asHsl,SomeColor">
<dt><pre><span class="Keyword">proc</span> <a href="#asHsl%2CSomeColor"><span class="Identifier">asHsl</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a> {.<span class="Identifier">inline</span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L223" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="asRgb,SomeColor">
<dt><pre><span class="Keyword">proc</span> <a href="#asRgb%2CSomeColor"><span class="Identifier">asRgb</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a> {.<span class="Identifier">inline</span>.}</pre></dt>
<dd>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L222" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="color,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#color%2CColor"><span class="Identifier">color</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</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>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L203" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="color,ColorHSL">
<dt><pre><span class="Keyword">proc</span> <a href="#color%2CColorHSL"><span class="Identifier">color</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a> {.<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 ColorHSL to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L162" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="color,ColorRGB">
<dt><pre><span class="Keyword">proc</span> <a href="#color%2CColorRGB"><span class="Identifier">color</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</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 ColorRGB to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L80" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="color,ColorRGBA">
<dt><pre><span class="Keyword">proc</span> <a href="#color%2CColorRGBA"><span class="Identifier">color</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</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 ColorRGBA to Color
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L94" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="color,float32,float32,float32,float32">
<dt><pre><span class="Keyword">proc</span> <a href="#color%2Cfloat32%2Cfloat32%2Cfloat32%2Cfloat32"><span class="Identifier">color</span></a><span class="Other">(</span><span class="Identifier">r</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">float32</span><span class="Other">;</span> <span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">float32</span> <span class="Other">=</span> <span class="FloatNumber">1.0</span><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</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>
Creates from floats like:<ul class="simple"><li>color(1,0,0) -&gt; red</li>
<li>color(0,1,0) -&gt; green</li>
<li>color(0,0,1) -&gt; blue</li>
<li>color(0,0,0,1) -&gt; opaque black</li>
<li>color(0,0,0,0) -&gt; transparent black</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L42" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hash,Color">
<dt><pre><span class="Keyword">func</span> <a href="#hash%2CColor"><span class="Identifier">hash</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Hash</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>
Hashes a Color - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L235" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hash,ColorHSL">
<dt><pre><span class="Keyword">func</span> <a href="#hash%2CColorHSL"><span class="Identifier">hash</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Hash</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>
Hashes a ColorHSL - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L247" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hash,ColorRGB">
<dt><pre><span class="Keyword">func</span> <a href="#hash%2CColorRGB"><span class="Identifier">hash</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Hash</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>
Hashes a ColorRGB - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L239" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hash,ColorRGBA">
<dt><pre><span class="Keyword">func</span> <a href="#hash%2CColorRGBA"><span class="Identifier">hash</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#ColorRGBA"><span class="Identifier">ColorRGBA</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Hash</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>
Hashes a ColorRGB - used in tables.
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L243" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hsl,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#hsl%2CColor"><span class="Identifier">hsl</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</span></a> {.<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 Color to ColorHSL
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L104" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="hsl,float32,float32,float32">
<dt><pre><span class="Keyword">proc</span> <a href="#hsl%2Cfloat32%2Cfloat32%2Cfloat32"><span class="Identifier">hsl</span></a><span class="Other">(</span><span class="Identifier">h</span><span class="Other">,</span> <span class="Identifier">s</span><span class="Other">,</span> <span class="Identifier">l</span><span class="Other">:</span> <span class="Identifier">float32</span><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorHSL"><span class="Identifier">ColorHSL</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>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L67" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rgb,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#rgb%2CColor"><span class="Identifier">rgb</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</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 Color to ColorRGB
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L74" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rgb,uint8,uint8,uint8">
<dt><pre><span class="Keyword">proc</span> <a href="#rgb%2Cuint8%2Cuint8%2Cuint8"><span class="Identifier">rgb</span></a><span class="Other">(</span><span class="Identifier">r</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="Identifier">uint8</span><span class="Other">)</span><span class="Other">:</span> <a href="chroma.html#ColorRGB"><span class="Identifier">ColorRGB</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>
Creates from uint8s like:<ul class="simple"><li>rgba(255,0,0) -&gt; red</li>
<li>rgba(0,255,0) -&gt; green</li>
<li>rgba(0,0,255) -&gt; blue</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L51" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rgba,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#rgba%2CColor"><span class="Identifier">rgba</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</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 Color to ColorRGBA
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L87" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="rgba,uint8,uint8,uint8,uint8">
<dt><pre><span class="Keyword">proc</span> <a href="#rgba%2Cuint8%2Cuint8%2Cuint8%2Cuint8"><span class="Identifier">rgba</span></a><span class="Other">(</span><span class="Identifier">r</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">,</span> <span class="Identifier">a</span><span class="Other">:</span> <span class="Identifier">uint8</span><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>
Creates from uint8s like:<ul class="simple"><li>rgba(255,0,0,255) -&gt; red</li>
<li>rgba(0,255,0,255) -&gt; green</li>
<li>rgba(0,0,255,255) -&gt; blue</li>
<li>rgba(0,0,0,255) -&gt; opaque black</li>
<li>rgba(0,0,0,0) -&gt; transparent black</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L58" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="to,SomeColor,typedesc[T]">
<dt><pre><span class="Keyword">proc</span> <a href="#to%2CSomeColor%2Ctypedesc%5BT%5D"><span class="Identifier">to</span></a><span class="Other">[</span><span class="Identifier">T</span><span class="Other">:</span> <a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a><span class="Other">]</span><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#SomeColor"><span class="Identifier">SomeColor</span></a><span class="Other">;</span> <span class="Identifier">toColor</span><span class="Other">:</span> <span class="Identifier">typedesc</span><span class="Other">[</span><span class="Identifier">T</span><span class="Other">]</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">T</span> {.<span class="Identifier">inline</span>.}</pre></dt>
<dd>
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/v0.1.1/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#L206" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHex,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHex%2CColor"><span class="Identifier">toHex</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Formats color as hex (upper case):<ul class="simple"><li>red -&gt; FF0000</li>
<li>blue -&gt; 0000FF</li>
<li>white -&gt; FFFFFF</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L251" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHexAlpha,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHexAlpha%2CColor"><span class="Identifier">toHexAlpha</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Formats color as hex (upper case):<ul class="simple"><li>red -&gt; FF0000FF</li>
<li>blue -&gt; 0000FFFF</li>
<li>white -&gt; FFFFFFFF</li>
<li>opaque black -&gt; 000000FF</li>
<li>transparent black -&gt; 00000000</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L260" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHtmlHex,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHtmlHex%2CColor"><span class="Identifier">toHtmlHex</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Formats color as HTML hex (upper case):<ul class="simple"><li>red -&gt; #FF0000</li>
<li>blue -&gt; #0000FF</li>
<li>white -&gt; #FFFFFF</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L271" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHtmlHexTiny,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHtmlHexTiny%2CColor"><span class="Identifier">toHtmlHexTiny</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Formats color as HTML 3 hex numbers (upper case):<ul class="simple"><li>red -&gt; #F00</li>
<li>blue -&gt; #00F</li>
<li>white -&gt; #FFF</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L278" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHtmlRgb,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHtmlRgb%2CColor"><span class="Identifier">toHtmlRgb</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Parses colors in html's rgb format:<ul class="simple"><li>red -&gt; rgb(255, 0, 0)</li>
<li>blue -&gt; rgb(0,0,255)</li>
<li>white -&gt; rgb(255,255,255)</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L287" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
<div id="toHtmlRgba,Color">
<dt><pre><span class="Keyword">proc</span> <a href="#toHtmlRgba%2CColor"><span class="Identifier">toHtmlRgba</span></a><span class="Other">(</span><span class="Identifier">c</span><span class="Other">:</span> <a href="chroma.html#Color"><span class="Identifier">Color</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</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>
Parses colors in html's rgb format:<ul class="simple"><li>red -&gt; rgb(255, 0, 0)</li>
<li>blue -&gt; rgb(0,0,255)</li>
<li>white -&gt; rgb(255,255,255)</li>
</ul>
&nbsp;&nbsp;<a
href="https://github.com/daylinmorgan/catppuccin-nim/tree/v0.1.1/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#L298" class="link-seesrc" target="_blank" >Edit</a>
</dd>
</div>
</dl></div>
</div>
</div>
<div class="row">
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-04-27 14:35:01 UTC</small>
</div>
</div>
</div>
</div>
</body>
</html>