Skip to content

Commit b96e301

Browse files
committed
Updates
1 parent 9fbc75c commit b96e301

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

api/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>
@@ -356,6 +356,7 @@ <h2>Gamut mapping</h2>
356356
<p>The “roughly in gamut” aspect of the algorithm can be disabled by passing <code>null</code> for the <code>delta</code> color difference function:</p>
357357
<pre class="language-js"><code class="language-js"><span class="token keyword">import</span> <span class="token punctuation">{</span> toGamut <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'culori'</span><span class="token punctuation">;</span>
358358
<span class="token keyword">const</span> clampToP3 <span class="token operator">=</span> <span class="token function">toGamut</span><span class="token punctuation">(</span><span class="token string">'p3'</span><span class="token punctuation">,</span> <span class="token string">'oklch'</span><span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
359+
<p>The algorithm expects an LCH-like color space, containing lightness and chroma components, for the <code>mode</code> argument.</p>
359360
<h2>Interpolation</h2>
360361
<p>In any color space, colors occupy positions given by their values for each channel. Interpolating colors means tracing a line through the coordinates of these colors, and figuring out what colors reside on the line at various positions.</p>
361362
<img src='/img/red-blue.png' height='20' alt='red and blue, linearly interpolated'/>

colophon/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

color-spaces/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>
@@ -260,12 +260,12 @@ <h4><code>lab</code></h4>
260260
</tr>
261261
<tr>
262262
<td><code>a</code></td>
263-
<td><code>[-100, 100]</code></td>
263+
<td><code>[-125, 125]</code></td>
264264
<td>Green–red component</td>
265265
</tr>
266266
<tr>
267267
<td><code>b</code></td>
268-
<td><code>[-100, 100]</code></td>
268+
<td><code>[-125, 125]</code></td>
269269
<td>Blue–yellow component</td>
270270
</tr>
271271
</tbody>
@@ -320,12 +320,12 @@ <h4><code>lab65</code></h4>
320320
</tr>
321321
<tr>
322322
<td><code>a</code></td>
323-
<td><code>[-86.183, 98.234]</code></td>
323+
<td><code>[-125, 125]</code></td>
324324
<td>Green–red component</td>
325325
</tr>
326326
<tr>
327327
<td><code>b</code></td>
328-
<td><code>[-107.86, 94.478]</code></td>
328+
<td><code>[-125, 125]</code></td>
329329
<td>Blue–yellow component</td>
330330
</tr>
331331
</tbody>
@@ -350,7 +350,7 @@ <h4><code>lch65</code></h4>
350350
</tr>
351351
<tr>
352352
<td><code>c</code></td>
353-
<td><code>[0, 133.807]</code></td>
353+
<td><code>[0, 150]</code></td>
354354
<td>Chroma</td>
355355
</tr>
356356
<tr>

culori.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

getting-started/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>
@@ -100,11 +100,11 @@ <h3>In your browser's console</h3>
100100
<h3>Observable</h3>
101101
<p>If you prefer to see the results visually, <a href="https://beta.observablehq.com">Observable</a> is a great place to tinker with the library.</p>
102102
<p>Add this cell and you're good to go:</p>
103-
<pre class="language-js"><code class="language-js">culori <span class="token operator">=</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'[email protected].1'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
103+
<pre class="language-js"><code class="language-js">culori <span class="token operator">=</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'[email protected].2'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
104104
<p>It's often useful to pin the library to a specific version, to make sure your old notebooks don't break if the API changes in a new major version of the library.</p>
105105
<h2>Use Culori in Deno</h2>
106106
<p>The library is published to <a href="https://deno.land/x/culori">deno.land/x/culori</a> for usage in <a href="https://deno.land/">Deno</a>:</p>
107-
<pre class="language-js"><code class="language-js"><span class="token keyword">import</span> <span class="token punctuation">{</span> rgb <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'https://deno.land/x/culori@4.0.1/index.js'</span><span class="token punctuation">;</span>
107+
<pre class="language-js"><code class="language-js"><span class="token keyword">import</span> <span class="token punctuation">{</span> rgb <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'https://deno.land/x/culori@v4.0.2/index.js'</span><span class="token punctuation">;</span>
108108

109109
<span class="token function">rgb</span><span class="token punctuation">(</span><span class="token string">'tomato'</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre>
110110

guides/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

guides/migration/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

guides/tree-shaking/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

resources/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
alt="culori"
2323
/>
2424
</a>
25-
<a href="https://github.com/evercoder/culori/releases">v4.0.1</a>
25+
<a href="https://github.com/evercoder/culori/releases">v4.0.2</a>
2626
</div>
2727
<nav>
2828
<ul class='nav'>

0 commit comments

Comments
 (0)