Another doc pass.
This commit is contained in:
parent
a038e5ae6e
commit
f68fb9919c
13 changed files with 25 additions and 20 deletions
|
@ -533,7 +533,7 @@ Strokes a polygon.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:22 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -206,28 +206,28 @@ window.addEventListener('DOMContentLoaded', main);
|
|||
<dt><pre><a href="blends.html#Blender"><span class="Identifier">Blender</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">backdrop</span><span class="Other">,</span> <span class="Identifier">source</span><span class="Other">:</span> <span class="Identifier">ColorRGBA</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">ColorRGBA</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
Function signature returned by blender.
|
||||
|
||||
</dd>
|
||||
<a id="Masker"></a>
|
||||
<dt><pre><a href="blends.html#Masker"><span class="Identifier">Masker</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">backdrop</span><span class="Other">,</span> <span class="Identifier">source</span><span class="Other">:</span> <span class="Identifier">uint8</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">uint8</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
Function signature returned by masker.
|
||||
|
||||
</dd>
|
||||
<a id="BlenderSimd"></a>
|
||||
<dt><pre><a href="blends.html#BlenderSimd"><span class="Identifier">BlenderSimd</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">blackdrop</span><span class="Other">,</span> <span class="Identifier">source</span><span class="Other">:</span> <span class="Identifier">M128i</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">M128i</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
Function signature returned by blenderSimd.
|
||||
|
||||
</dd>
|
||||
<a id="MaskerSimd"></a>
|
||||
<dt><pre><a href="blends.html#MaskerSimd"><span class="Identifier">MaskerSimd</span></a> <span class="Other">=</span> <span class="Keyword">proc</span> <span class="Other">(</span><span class="Identifier">blackdrop</span><span class="Other">,</span> <span class="Identifier">source</span><span class="Other">:</span> <span class="Identifier">M128i</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">M128i</span></pre></dt>
|
||||
<dd>
|
||||
|
||||
|
||||
Function signature returned by maskerSimd.
|
||||
|
||||
</dd>
|
||||
|
||||
|
@ -310,7 +310,7 @@ Is there a blend masking function with SIMD support?
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:49 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:20 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -228,7 +228,7 @@ Converts a color from premultiplied alpha to straight alpha.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:49 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:20 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -185,7 +185,7 @@ Encodes an image into the BMP file format.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:50 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:21 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -185,7 +185,7 @@ Encodes Image into a JPEG data string.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:50 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:21 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -204,7 +204,7 @@ Encodes the mask data into the PNG file format.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:50 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:21 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -174,7 +174,7 @@ Render SVG file and return the image.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:22 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -579,7 +579,7 @@ Shifts the target by offset.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:50 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:21 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -357,7 +357,7 @@ A value of 0 stays 0. Anything else turns into 255.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:49 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:20 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -272,7 +272,7 @@ Angular gradient.
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:50 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:21 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -628,7 +628,7 @@ Return elements in pairs: (1st, 2nd), (2nd, 3rd) ... (n - 1, last).
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:22 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -917,7 +917,7 @@ window.addEventListener('DOMContentLoaded', main);
|
|||
<div class="twelve-columns footer">
|
||||
<span class="nim-sprite"></span>
|
||||
<br/>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:15:51 UTC</small>
|
||||
<small style="color: var(--hint);">Made with Nim. Generated: 2021-02-25 15:26:22 UTC</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,8 +35,11 @@ type
|
|||
bmIntersectMask
|
||||
bmExcludeMask
|
||||
|
||||
Blender* = proc(backdrop, source: ColorRGBA): ColorRGBA
|
||||
Masker* = proc(backdrop, source: uint8): uint8
|
||||
|
||||
Blender* = proc(backdrop, source: ColorRGBA): ColorRGBA ## Function signature
|
||||
## returned by blender.
|
||||
Masker* = proc(backdrop, source: uint8): uint8 ## Function signature returned
|
||||
## by masker.
|
||||
|
||||
when defined(release):
|
||||
{.push checks: off.}
|
||||
|
@ -513,8 +516,10 @@ when defined(amd64) and not defined(pixieNoSimd):
|
|||
import nimsimd/sse2
|
||||
|
||||
type
|
||||
BlenderSimd* = proc(blackdrop, source: M128i): M128i
|
||||
MaskerSimd* = proc(blackdrop, source: M128i): M128i
|
||||
BlenderSimd* = proc(blackdrop, source: M128i): M128i ## Function signature
|
||||
## returned by blenderSimd.
|
||||
MaskerSimd* = proc(blackdrop, source: M128i): M128i ## Function signature
|
||||
## returned by maskerSimd.
|
||||
|
||||
proc packAlphaValues*(v: M128i): M128i {.inline.} =
|
||||
## Shuffle the alpha values for these 4 colors to the first 4 bytes
|
||||
|
|
Loading…
Reference in a new issue