mirror of
https://github.com/catppuccin/nim.git
synced 2024-11-09 19:33:15 -06:00
deploy: f331a2f050
This commit is contained in:
commit
fcd8edd39d
8 changed files with 4478 additions and 0 deletions
0
.nojekyll
Normal file
0
.nojekyll
Normal file
4
catppuccin.idx
Normal file
4
catppuccin.idx
Normal file
|
@ -0,0 +1,4 @@
|
|||
latte index.html#latte catppuccin: latte
|
||||
frappe index.html#frappe catppuccin: frappe
|
||||
macchiato index.html#macchiato catppuccin: macchiato
|
||||
mocha index.html#mocha catppuccin: mocha
|
761
catppuccin/chroma.html
Normal file
761
catppuccin/chroma.html
Normal file
|
@ -0,0 +1,761 @@
|
|||
<?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>
|
||||
<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="#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"
|
||||
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%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>
|
||||
|
||||
</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>
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L1"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L9"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L39"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L39" 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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L17"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L24"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L31"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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">
|
||||
<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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L47"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L47" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L45"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L45" 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 "(r, g, b, a)".
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L250"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L250" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L240"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L240" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L242"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L242" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L241"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L241" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L222"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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,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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L181"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L181" 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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L99"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L99" 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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L113"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L113" 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) -> red</li>
|
||||
<li>color(0,1,0) -> green</li>
|
||||
<li>color(0,0,1) -> blue</li>
|
||||
<li>color(0,0,0,1) -> opaque black</li>
|
||||
<li>color(0,0,0,0) -> transparent black</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L49"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L49" 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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L254"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L254" 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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L266"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L266" 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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L258"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L258" 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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L262"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L262" 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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L123"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L123" 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>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L74"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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,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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L93"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L93" 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) -> red</li>
|
||||
<li>rgba(0,255,0) -> green</li>
|
||||
<li>rgba(0,0,255) -> blue</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L58"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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="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
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L106"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L81"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L81" 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) -> red</li>
|
||||
<li>rgba(0,255,0,255) -> green</li>
|
||||
<li>rgba(0,0,255,255) -> blue</li>
|
||||
<li>rgba(0,0,0,255) -> opaque black</li>
|
||||
<li>rgba(0,0,0,0) -> transparent black</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L65"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L65" 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.
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L225"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L225" 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 -> FF0000</li>
|
||||
<li>blue -> 0000FF</li>
|
||||
<li>white -> FFFFFF</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L270"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L270" 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 -> FF0000FF</li>
|
||||
<li>blue -> 0000FFFF</li>
|
||||
<li>white -> FFFFFFFF</li>
|
||||
<li>opaque black -> 000000FF</li>
|
||||
<li>transparent black -> 00000000</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L279"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L279" 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 -> #FF0000</li>
|
||||
<li>blue -> #0000FF</li>
|
||||
<li>white -> #FFFFFF</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L290"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L290" 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 -> #F00</li>
|
||||
<li>blue -> #00F</li>
|
||||
<li>white -> #FFF</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L297"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L297" 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 -> rgb(255, 0, 0)</li>
|
||||
<li>blue -> rgb(0,0,255)</li>
|
||||
<li>white -> rgb(255,255,255)</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L306"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L306" 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 -> rgb(255, 0, 0)</li>
|
||||
<li>blue -> rgb(0,0,255)</li>
|
||||
<li>white -> rgb(255,255,255)</li>
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/chroma.nim#L317"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/chroma.nim#L317" 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:11:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
34
catppuccin/chroma.idx
Normal file
34
catppuccin/chroma.idx
Normal file
|
@ -0,0 +1,34 @@
|
|||
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
|
||||
color catppuccin/chroma.html#color,float32,float32,float32,float32 chroma: color(r, g, b: float32; a: float32 = 1.0): 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
|
||||
color catppuccin/chroma.html#color,ColorRGBA chroma: color(c: ColorRGBA): Color
|
||||
hsl catppuccin/chroma.html#hsl,Color chroma: hsl(c: Color): ColorHSL
|
||||
color catppuccin/chroma.html#color,ColorHSL chroma: color(c: ColorHSL): Color
|
||||
color catppuccin/chroma.html#color,Color chroma: color(c: Color): Color
|
||||
to catppuccin/chroma.html#to,SomeColor,typedesc[T] chroma: to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T
|
||||
asColor catppuccin/chroma.html#asColor,SomeColor chroma: asColor(c: SomeColor): Color
|
||||
asRgb catppuccin/chroma.html#asRgb,SomeColor chroma: asRgb(c: SomeColor): ColorRGB
|
||||
asHsl catppuccin/chroma.html#asHsl,SomeColor chroma: asHsl(c: SomeColor): ColorHSL
|
||||
`$` catppuccin/chroma.html#$,Color chroma: `$`(c: Color): string
|
||||
hash catppuccin/chroma.html#hash,Color chroma: hash(c: Color): Hash
|
||||
hash catppuccin/chroma.html#hash,ColorRGB chroma: hash(c: ColorRGB): Hash
|
||||
hash catppuccin/chroma.html#hash,ColorRGBA chroma: hash(c: ColorRGBA): Hash
|
||||
hash catppuccin/chroma.html#hash,ColorHSL chroma: hash(c: ColorHSL): Hash
|
||||
toHex catppuccin/chroma.html#toHex,Color chroma: toHex(c: Color): string
|
||||
toHexAlpha catppuccin/chroma.html#toHexAlpha,Color chroma: toHexAlpha(c: Color): string
|
||||
toHtmlHex catppuccin/chroma.html#toHtmlHex,Color chroma: toHtmlHex(c: Color): string
|
||||
toHtmlHexTiny catppuccin/chroma.html#toHtmlHexTiny,Color chroma: toHtmlHexTiny(c: Color): string
|
||||
toHtmlRgb catppuccin/chroma.html#toHtmlRgb,Color chroma: toHtmlRgb(c: Color): string
|
||||
toHtmlRgba catppuccin/chroma.html#toHtmlRgba,Color chroma: toHtmlRgba(c: Color): string
|
2041
dochack.js
Normal file
2041
dochack.js
Normal file
File diff suppressed because it is too large
Load diff
406
index.html
Normal file
406
index.html
Normal file
|
@ -0,0 +1,406 @@
|
|||
<?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</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</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>
|
||||
<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="#6" id="56">Imports</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
<li><a class="reference" href="#frappe"
|
||||
title="frappe = (rosewater: (r: 242'u, g: 213'u, b: 207'u),
|
||||
flamingo: (r: 238'u, g: 190'u, b: 190'u),
|
||||
pink: (r: 244'u, g: 184'u, b: 228'u),
|
||||
mauve: (r: 202'u, g: 158'u, b: 230'u),
|
||||
red: (r: 231'u, g: 130'u, b: 132'u),
|
||||
maroon: (r: 234'u, g: 153'u, b: 156'u),
|
||||
peach: (r: 239'u, g: 159'u, b: 118'u),
|
||||
yellow: (r: 229'u, g: 200'u, b: 144'u),
|
||||
green: (r: 166'u, g: 209'u, b: 137'u),
|
||||
teal: (r: 129'u, g: 200'u, b: 190'u),
|
||||
sky: (r: 153'u, g: 209'u, b: 219'u),
|
||||
sapphire: (r: 133'u, g: 193'u, b: 220'u),
|
||||
blue: (r: 140'u, g: 170'u, b: 238'u),
|
||||
lavender: (r: 186'u, g: 187'u, b: 241'u),
|
||||
text: (r: 198'u, g: 208'u, b: 245'u),
|
||||
subtext1: (r: 181'u, g: 191'u, b: 226'u),
|
||||
subtext0: (r: 165'u, g: 173'u, b: 206'u),
|
||||
overlay2: (r: 148'u, g: 156'u, b: 187'u),
|
||||
overlay1: (r: 131'u, g: 139'u, b: 167'u),
|
||||
surface2: (r: 98'u, g: 104'u, b: 128'u),
|
||||
surface1: (r: 81'u, g: 87'u, b: 109'u),
|
||||
surface0: (r: 65'u, g: 69'u, b: 89'u),
|
||||
base: (r: 48'u, g: 52'u, b: 70'u),
|
||||
mantle: (r: 41'u, g: 44'u, b: 60'u),
|
||||
crust: (r: 35'u, g: 38'u, b: 52'u))">frappe</a></li>
|
||||
<li><a class="reference" href="#latte"
|
||||
title="latte = (rosewater: (r: 220'u, g: 138'u, b: 120'u),
|
||||
flamingo: (r: 221'u, g: 120'u, b: 120'u),
|
||||
pink: (r: 234'u, g: 118'u, b: 203'u),
|
||||
mauve: (r: 136'u, g: 57'u, b: 239'u),
|
||||
red: (r: 210'u, g: 15'u, b: 57'u),
|
||||
maroon: (r: 230'u, g: 69'u, b: 83'u),
|
||||
peach: (r: 254'u, g: 100'u, b: 11'u),
|
||||
yellow: (r: 223'u, g: 142'u, b: 29'u),
|
||||
green: (r: 64'u, g: 160'u, b: 43'u),
|
||||
teal: (r: 23'u, g: 146'u, b: 153'u), sky: (r: 4'u, g: 165'u, b: 229'u),
|
||||
sapphire: (r: 32'u, g: 159'u, b: 181'u),
|
||||
blue: (r: 30'u, g: 102'u, b: 245'u),
|
||||
lavender: (r: 114'u, g: 135'u, b: 253'u),
|
||||
text: (r: 76'u, g: 79'u, b: 105'u),
|
||||
subtext1: (r: 92'u, g: 95'u, b: 119'u),
|
||||
subtext0: (r: 108'u, g: 111'u, b: 133'u),
|
||||
overlay2: (r: 124'u, g: 127'u, b: 147'u),
|
||||
overlay1: (r: 140'u, g: 143'u, b: 161'u),
|
||||
surface2: (r: 172'u, g: 176'u, b: 190'u),
|
||||
surface1: (r: 188'u, g: 192'u, b: 204'u),
|
||||
surface0: (r: 204'u, g: 208'u, b: 218'u),
|
||||
base: (r: 239'u, g: 241'u, b: 245'u),
|
||||
mantle: (r: 230'u, g: 233'u, b: 239'u),
|
||||
crust: (r: 220'u, g: 224'u, b: 232'u))">latte</a></li>
|
||||
<li><a class="reference" href="#macchiato"
|
||||
title="macchiato = (rosewater: (r: 244'u, g: 219'u, b: 214'u),
|
||||
flamingo: (r: 240'u, g: 198'u, b: 198'u),
|
||||
pink: (r: 245'u, g: 189'u, b: 230'u),
|
||||
mauve: (r: 198'u, g: 160'u, b: 246'u),
|
||||
red: (r: 237'u, g: 135'u, b: 150'u),
|
||||
maroon: (r: 238'u, g: 153'u, b: 160'u),
|
||||
peach: (r: 245'u, g: 169'u, b: 127'u),
|
||||
yellow: (r: 238'u, g: 212'u, b: 159'u),
|
||||
green: (r: 166'u, g: 218'u, b: 149'u),
|
||||
teal: (r: 139'u, g: 213'u, b: 202'u),
|
||||
sky: (r: 145'u, g: 215'u, b: 227'u),
|
||||
sapphire: (r: 125'u, g: 196'u, b: 228'u),
|
||||
blue: (r: 138'u, g: 173'u, b: 244'u),
|
||||
lavender: (r: 183'u, g: 189'u, b: 248'u),
|
||||
text: (r: 202'u, g: 211'u, b: 245'u),
|
||||
subtext1: (r: 184'u, g: 192'u, b: 224'u),
|
||||
subtext0: (r: 165'u, g: 173'u, b: 203'u),
|
||||
overlay2: (r: 147'u, g: 154'u, b: 183'u),
|
||||
overlay1: (r: 128'u, g: 135'u, b: 162'u),
|
||||
surface2: (r: 91'u, g: 96'u, b: 120'u),
|
||||
surface1: (r: 73'u, g: 77'u, b: 100'u),
|
||||
surface0: (r: 54'u, g: 58'u, b: 79'u),
|
||||
base: (r: 36'u, g: 39'u, b: 58'u),
|
||||
mantle: (r: 30'u, g: 32'u, b: 48'u),
|
||||
crust: (r: 24'u, g: 25'u, b: 38'u))">macchiato</a></li>
|
||||
<li><a class="reference" href="#mocha"
|
||||
title="mocha = (rosewater: (r: 245'u, g: 224'u, b: 220'u),
|
||||
flamingo: (r: 242'u, g: 205'u, b: 205'u),
|
||||
pink: (r: 245'u, g: 194'u, b: 231'u),
|
||||
mauve: (r: 203'u, g: 166'u, b: 247'u),
|
||||
red: (r: 243'u, g: 139'u, b: 168'u),
|
||||
maroon: (r: 235'u, g: 160'u, b: 172'u),
|
||||
peach: (r: 250'u, g: 179'u, b: 135'u),
|
||||
yellow: (r: 249'u, g: 226'u, b: 175'u),
|
||||
green: (r: 166'u, g: 227'u, b: 161'u),
|
||||
teal: (r: 148'u, g: 226'u, b: 213'u),
|
||||
sky: (r: 137'u, g: 220'u, b: 235'u),
|
||||
sapphire: (r: 116'u, g: 199'u, b: 236'u),
|
||||
blue: (r: 137'u, g: 180'u, b: 250'u),
|
||||
lavender: (r: 180'u, g: 190'u, b: 254'u),
|
||||
text: (r: 205'u, g: 214'u, b: 244'u),
|
||||
subtext1: (r: 186'u, g: 194'u, b: 222'u),
|
||||
subtext0: (r: 166'u, g: 173'u, b: 200'u),
|
||||
overlay2: (r: 147'u, g: 153'u, b: 178'u),
|
||||
overlay1: (r: 127'u, g: 132'u, b: 156'u),
|
||||
surface2: (r: 88'u, g: 91'u, b: 112'u),
|
||||
surface1: (r: 69'u, g: 71'u, b: 90'u),
|
||||
surface0: (r: 49'u, g: 50'u, b: 68'u),
|
||||
base: (r: 30'u, g: 30'u, b: 46'u), mantle: (r: 24'u, g: 24'u, b: 37'u),
|
||||
crust: (r: 17'u, g: 17'u, b: 27'u))">mocha</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="reference reference-toplevel" href="#19" id="69">Exports</a>
|
||||
<ul class="simple simple-toc-section">
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin.nim#L1"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
<div class="nine columns" id="content">
|
||||
<div id="tocRoot"></div>
|
||||
|
||||
<p class="module-desc"></p>
|
||||
<div class="section" id="6">
|
||||
<h1><a class="toc-backref" href="#6">Imports</a></h1>
|
||||
<dl class="item">
|
||||
<a class="reference external" href="catppuccin/chroma.html">catppuccin/chroma</a>
|
||||
</dl></div>
|
||||
<div class="section" id="10">
|
||||
<h1><a class="toc-backref" href="#10">Consts</a></h1>
|
||||
<dl class="item">
|
||||
<div id="frappe">
|
||||
<dt><pre><a href="index.html#frappe"><span class="Identifier">frappe</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">rosewater</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">242'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">213'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">207'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">flamingo</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">238'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">190'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">190'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">pink</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">244'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">184'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">228'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mauve</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">202'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">158'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">230'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">red</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">231'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">130'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">132'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">maroon</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">234'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">153'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">156'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">peach</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">239'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">159'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">118'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">yellow</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">229'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">200'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">144'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">green</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">166'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">209'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">137'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">teal</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">129'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">200'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">190'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sky</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">153'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">209'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">219'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sapphire</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">133'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">193'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">220'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">blue</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">140'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">170'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">238'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">lavender</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">186'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">187'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">241'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">text</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">198'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">208'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">181'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">191'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">226'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">165'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">173'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">206'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">148'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">156'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">187'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">131'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">139'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">167'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">98'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">104'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">128'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">81'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">87'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">109'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">65'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">69'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">89'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">base</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">48'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">52'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">70'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mantle</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">41'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">44'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">60'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">crust</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">35'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">38'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">52'u</span><span class="Other">)</span><span class="Other">)</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L31"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L31" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="latte">
|
||||
<dt><pre><a href="index.html#latte"><span class="Identifier">latte</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">rosewater</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">220'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">138'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">120'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">flamingo</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">221'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">120'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">120'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">pink</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">234'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">118'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">203'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mauve</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">136'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">57'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">239'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">red</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">210'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">15'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">57'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">maroon</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">230'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">69'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">83'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">peach</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">254'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">100'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">11'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">yellow</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">223'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">142'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">29'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">green</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">64'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">160'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">43'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">teal</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">23'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">146'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">153'u</span><span class="Other">)</span><span class="Other">,</span> <span class="Identifier">sky</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">4'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">165'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">229'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sapphire</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">32'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">159'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">181'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">blue</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">30'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">102'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">lavender</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">114'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">135'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">253'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">text</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">76'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">79'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">105'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">92'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">95'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">119'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">108'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">111'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">133'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">124'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">127'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">147'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">140'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">143'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">161'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">172'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">176'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">190'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">188'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">192'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">204'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">204'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">208'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">218'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">base</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">239'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">241'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mantle</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">230'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">233'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">239'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">crust</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">220'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">224'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">232'u</span><span class="Other">)</span><span class="Other">)</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L4"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L4" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="macchiato">
|
||||
<dt><pre><a href="index.html#macchiato"><span class="Identifier">macchiato</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">rosewater</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">244'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">219'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">214'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">flamingo</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">240'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">198'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">198'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">pink</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">189'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">230'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mauve</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">198'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">160'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">246'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">red</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">237'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">135'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">150'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">maroon</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">238'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">153'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">160'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">peach</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">169'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">127'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">yellow</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">238'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">212'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">159'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">green</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">166'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">218'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">149'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">teal</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">139'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">213'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">202'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sky</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">145'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">215'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">227'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sapphire</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">125'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">196'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">228'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">blue</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">138'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">173'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">244'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">lavender</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">183'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">189'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">248'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">text</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">202'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">211'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">184'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">192'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">224'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">165'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">173'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">203'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">147'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">154'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">183'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">128'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">135'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">162'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">91'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">96'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">120'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">73'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">77'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">100'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">54'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">58'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">79'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">base</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">36'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">39'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">58'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mantle</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">30'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">32'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">48'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">crust</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">24'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">25'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">38'u</span><span class="Other">)</span><span class="Other">)</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L58"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L58" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
<div id="mocha">
|
||||
<dt><pre><a href="index.html#mocha"><span class="Identifier">mocha</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">rosewater</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">224'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">220'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">flamingo</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">242'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">205'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">205'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">pink</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">245'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">194'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">231'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">mauve</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">203'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">166'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">247'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">red</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">243'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">139'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">168'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">maroon</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">235'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">160'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">172'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">peach</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">250'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">179'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">135'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">yellow</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">249'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">226'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">175'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">green</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">166'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">227'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">161'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">teal</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">148'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">226'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">213'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sky</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">137'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">220'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">235'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">sapphire</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">116'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">199'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">236'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">blue</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">137'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">180'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">250'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">lavender</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">180'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">190'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">254'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">text</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">205'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">214'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">244'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">186'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">194'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">222'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">subtext0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">166'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">173'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">200'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">147'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">153'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">178'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">overlay1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">127'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">132'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">156'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface2</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">88'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">91'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">112'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface1</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">69'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">71'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">90'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">surface0</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">49'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">50'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">68'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">base</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">30'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">30'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">46'u</span><span class="Other">)</span><span class="Other">,</span> <span class="Identifier">mantle</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">24'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">24'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">37'u</span><span class="Other">)</span><span class="Other">,</span>
|
||||
<span class="Identifier">crust</span><span class="Other">:</span> <span class="Other">(</span><span class="Identifier">r</span><span class="Other">:</span> <span class="DecNumber">17'u</span><span class="Other">,</span> <span class="Identifier">g</span><span class="Other">:</span> <span class="DecNumber">17'u</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <span class="DecNumber">27'u</span><span class="Other">)</span><span class="Other">)</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
<a
|
||||
href="https://github.com/daylinmorgan/catppuccin-nim/tree/version-1-6/src/catppuccin/palette.nim#L85"
|
||||
class="link-seesrc" target="_blank">Source</a>
|
||||
<a href="https://github.com/daylinmorgan/catppuccin-nim/edit/devel/src/catppuccin/palette.nim#L85" class="link-seesrc" target="_blank" >Edit</a>
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
</dl></div>
|
||||
<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>
|
||||
</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:11:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
1016
nimdoc.out.css
Normal file
1016
nimdoc.out.css
Normal file
File diff suppressed because one or more lines are too long
216
theindex.html
Normal file
216
theindex.html
Normal file
|
@ -0,0 +1,216 @@
|
|||
<?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>Index</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">Index</h1>
|
||||
Modules: <a href="index.html">catppuccin</a>, <a href="catppuccin/chroma.html">catppuccin/chroma</a>.<br/><p /><h2>API symbols</h2>
|
||||
<dl><dt><a name="%60%24%60" href="#%60%24%60"><span>`$`:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: `$`(c: Color): string" href="catppuccin/chroma.html#%24%2CColor">chroma: `$`(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="asColor" href="#asColor"><span>asColor:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: asColor(c: SomeColor): Color" href="catppuccin/chroma.html#asColor%2CSomeColor">chroma: asColor(c: SomeColor): Color</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="asHsl" href="#asHsl"><span>asHsl:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: asHsl(c: SomeColor): ColorHSL" href="catppuccin/chroma.html#asHsl%2CSomeColor">chroma: asHsl(c: SomeColor): ColorHSL</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="asRgb" href="#asRgb"><span>asRgb:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: asRgb(c: SomeColor): ColorRGB" href="catppuccin/chroma.html#asRgb%2CSomeColor">chroma: asRgb(c: SomeColor): ColorRGB</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="Color" href="#Color"><span>Color:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: Color" href="catppuccin/chroma.html#Color">chroma: Color</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="color" href="#color"><span>color:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: color(c: Color): Color" href="catppuccin/chroma.html#color%2CColor">chroma: color(c: Color): Color</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: color(c: ColorHSL): Color" href="catppuccin/chroma.html#color%2CColorHSL">chroma: color(c: ColorHSL): Color</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: color(c: ColorRGB): Color" href="catppuccin/chroma.html#color%2CColorRGB">chroma: color(c: ColorRGB): Color</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: color(c: ColorRGBA): Color" href="catppuccin/chroma.html#color%2CColorRGBA">chroma: color(c: ColorRGBA): Color</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: color(r, g, b: float32; a: float32 = 1.0): Color" href="catppuccin/chroma.html#color%2Cfloat32%2Cfloat32%2Cfloat32%2Cfloat32">chroma: color(r, g, b: float32; a: float32 = 1.0): Color</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="ColorHSL" href="#ColorHSL"><span>ColorHSL:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: ColorHSL" href="catppuccin/chroma.html#ColorHSL">chroma: ColorHSL</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="ColorRGB" href="#ColorRGB"><span>ColorRGB:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: ColorRGB" href="catppuccin/chroma.html#ColorRGB">chroma: ColorRGB</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="ColorRGBA" href="#ColorRGBA"><span>ColorRGBA:</span></a></dt><dd><ul class="simple">
|
||||
<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>
|
||||
</ul></dd>
|
||||
<dt><a name="hash" href="#hash"><span>hash:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hash(c: Color): Hash" href="catppuccin/chroma.html#hash%2CColor">chroma: hash(c: Color): Hash</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hash(c: ColorHSL): Hash" href="catppuccin/chroma.html#hash%2CColorHSL">chroma: hash(c: ColorHSL): Hash</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hash(c: ColorRGB): Hash" href="catppuccin/chroma.html#hash%2CColorRGB">chroma: hash(c: ColorRGB): Hash</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hash(c: ColorRGBA): Hash" href="catppuccin/chroma.html#hash%2CColorRGBA">chroma: hash(c: ColorRGBA): Hash</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="hsl" href="#hsl"><span>hsl:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hsl(c: Color): ColorHSL" href="catppuccin/chroma.html#hsl%2CColor">chroma: hsl(c: Color): ColorHSL</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: hsl(h, s, l: float32): ColorHSL" href="catppuccin/chroma.html#hsl%2Cfloat32%2Cfloat32%2Cfloat32">chroma: hsl(h, s, l: float32): ColorHSL</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="InvalidColor" href="#InvalidColor"><span>InvalidColor:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: InvalidColor" href="catppuccin/chroma.html#InvalidColor">chroma: InvalidColor</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="latte" href="#latte"><span>latte:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="catppuccin: latte" href="index.html#latte">catppuccin: latte</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="macchiato" href="#macchiato"><span>macchiato:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="catppuccin: macchiato" href="index.html#macchiato">catppuccin: macchiato</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="mocha" href="#mocha"><span>mocha:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="catppuccin: mocha" href="index.html#mocha">catppuccin: mocha</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="rgb" href="#rgb"><span>rgb:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: rgb(c: Color): ColorRGB" href="catppuccin/chroma.html#rgb%2CColor">chroma: rgb(c: Color): ColorRGB</a></li>
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: rgb(r, g, b: uint8): ColorRGB" href="catppuccin/chroma.html#rgb%2Cuint8%2Cuint8%2Cuint8">chroma: rgb(r, g, b: uint8): ColorRGB</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="rgba" href="#rgba"><span>rgba:</span></a></dt><dd><ul class="simple">
|
||||
<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">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: SomeColor" href="catppuccin/chroma.html#SomeColor">chroma: SomeColor</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="to" href="#to"><span>to:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T" href="catppuccin/chroma.html#to%2CSomeColor%2Ctypedesc%5BT%5D">chroma: to[T: SomeColor](c: SomeColor; toColor: typedesc[T]): T</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHex" href="#toHex"><span>toHex:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHex(c: Color): string" href="catppuccin/chroma.html#toHex%2CColor">chroma: toHex(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHexAlpha" href="#toHexAlpha"><span>toHexAlpha:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHexAlpha(c: Color): string" href="catppuccin/chroma.html#toHexAlpha%2CColor">chroma: toHexAlpha(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHtmlHex" href="#toHtmlHex"><span>toHtmlHex:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHtmlHex(c: Color): string" href="catppuccin/chroma.html#toHtmlHex%2CColor">chroma: toHtmlHex(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHtmlHexTiny" href="#toHtmlHexTiny"><span>toHtmlHexTiny:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHtmlHexTiny(c: Color): string" href="catppuccin/chroma.html#toHtmlHexTiny%2CColor">chroma: toHtmlHexTiny(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHtmlRgb" href="#toHtmlRgb"><span>toHtmlRgb:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHtmlRgb(c: Color): string" href="catppuccin/chroma.html#toHtmlRgb%2CColor">chroma: toHtmlRgb(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
<dt><a name="toHtmlRgba" href="#toHtmlRgba"><span>toHtmlRgba:</span></a></dt><dd><ul class="simple">
|
||||
<li><a class="reference external"
|
||||
data-doc-search-tag="chroma: toHtmlRgba(c: Color): string" href="catppuccin/chroma.html#toHtmlRgba%2CColor">chroma: toHtmlRgba(c: Color): string</a></li>
|
||||
</ul></dd>
|
||||
</dl>
|
||||
<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:11:40 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue