From 8a6f6db115180bcb14fd43d134b80b95c4628814 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 25 Feb 2021 19:52:07 -0600 Subject: [PATCH] updated docs --- docs/pixie.html | 4 +- docs/pixie/blends.html | 6 +-- docs/pixie/common.html | 53 ++------------------- docs/pixie/common.idx | 6 +-- docs/pixie/fileformats/bmp.html | 2 +- docs/pixie/fileformats/jpg.html | 2 +- docs/pixie/fileformats/png.html | 6 +-- docs/pixie/fileformats/svg.html | 2 +- docs/pixie/images.html | 82 ++++++++++++--------------------- docs/pixie/images.idx | 18 ++++---- docs/pixie/internal.html | 28 ++++++++++- docs/pixie/internal.idx | 2 + docs/pixie/masks.html | 2 +- docs/pixie/paints.html | 12 ++--- docs/pixie/paths.html | 42 ++++++++--------- docs/pixie/paths.idx | 8 ++-- docs/theindex.html | 48 ++++++++----------- 17 files changed, 134 insertions(+), 189 deletions(-) diff --git a/docs/pixie.html b/docs/pixie.html index 9b5b344..d93d23e 100644 --- a/docs/pixie.html +++ b/docs/pixie.html @@ -528,7 +528,7 @@ Strokes a polygon.

Exports

-maskerSimd, Masker, blender, hasSimdBlender, Blender, BlenderSimd, MaskerSimd, blenderSimd, hasSimdMasker, masker, BlendMode, blendAlpha, toPremultipliedAlpha, toPremultipliedAlpha, toStraightAlpha, PixieError, lerp, lerp, fractional, toStraightAlpha, lerp, getRgbaUnsafe, draw, []=, Image, copy, wh, setRgbaUnsafe, getRgbaSmooth, invert, flipVertical, magnifyBy2, draw, draw, flipHorizontal, shadow, subImage, inside, $, draw, shift, dataIndex, minifyBy2, draw, draw, fill, draw, newMask, blur, newImage, toPremultipliedAlpha, drawTiled, applyOpacity, resize, superImage, fillUnsafe, draw, toStraightAlpha, [], $, setValueUnsafe, ceil, dataIndex, []=, spread, copy, wh, newMask, minifyBy2, fill, Mask, getValueUnsafe, getValueSmooth, fillUnsafe, inside, [], ColorStop, PaintKind, fillLinearGradient, fillRadialGradient, fillAngularGradient, Paint, bezierCurveTo, LineCap, arcTo, LineJoin, rect, bezierCurveTo, SomePath, strokePath, $, parsePath, fillPath, lineTo, polygon, roundedRect, quadraticCurveTo, fillPath, strokePath, ellipticalArcTo, Path, lineTo, ellipse, quadraticCurveTo, arcTo, moveTo, roundedRect, PathCommandKind, polygon, strokePath, transform, PathCommand, roundedRect, rect, fillPath, segments, closePath, addPath, rect, strokePath, commandsToShapes, ellipse, WindingRule, fillPath, moveTo, fillPath +maskerSimd, Masker, blender, hasSimdBlender, Blender, BlenderSimd, MaskerSimd, blenderSimd, hasSimdMasker, masker, BlendMode, blendAlpha, PixieError, lerp, lerp, fractional, lerp, getRgbaUnsafe, draw, []=, Image, copy, wh, setRgbaUnsafe, getRgbaSmooth, invert, flipVertical, magnifyBy2, draw, draw, flipHorizontal, shadow, subImage, inside, $, draw, shift, dataIndex, minifyBy2, draw, draw, fill, draw, newMask, blur, newImage, drawTiled, applyOpacity, resize, superImage, fillUnsafe, draw, [], $, setValueUnsafe, ceil, dataIndex, []=, spread, copy, wh, newMask, minifyBy2, fill, Mask, getValueUnsafe, getValueSmooth, fillUnsafe, inside, [], ColorStop, PaintKind, fillLinearGradient, fillRadialGradient, fillAngularGradient, Paint, bezierCurveTo, LineCap, arcTo, LineJoin, rect, bezierCurveTo, SomePath, strokePath, $, parsePath, fillPath, lineTo, polygon, roundedRect, quadraticCurveTo, fillPath, strokePath, ellipticalArcTo, Path, lineTo, ellipse, quadraticCurveTo, arcTo, moveTo, roundedRect, PathCommandKind, polygon, strokePath, transform, PathCommand, roundedRect, rect, fillPath, segments, closePath, addPath, rect, strokePath, commandsToShapes, ellipse, WindingRule, fillPath, moveTo, fillPath
@@ -538,7 +538,7 @@ Strokes a polygon. diff --git a/docs/pixie/blends.html b/docs/pixie/blends.html index d605418..6b26424 100644 --- a/docs/pixie/blends.html +++ b/docs/pixie/blends.html @@ -109,7 +109,7 @@ function main() { bmSubtractMask, ## Inverse mask bmIntersectMask, bmExcludeMask">BlendMode
  • Blender
  • + title="Blender = proc (backdrop, source: ColorRGBX): ColorRGBX">Blender
  • Masker
  • -
    Blender = proc (backdrop, source: ColorRGBA): ColorRGBA
    +
    Blender = proc (backdrop, source: ColorRGBX): ColorRGBX
    Function signature returned by blender. @@ -283,7 +283,7 @@ Is there a blend masking function with SIMD support? diff --git a/docs/pixie/common.html b/docs/pixie/common.html index 54133c5..ee15117 100644 --- a/docs/pixie/common.html +++ b/docs/pixie/common.html @@ -105,22 +105,8 @@ function main() { - -
      fractional @@ -181,41 +167,12 @@ Returns unsigned fraction part of the float.
      -
      proc lerp(a, b: ColorRGBA; t: float32): ColorRGBA {...}{.inline, raises: [], tags: [].}
      + +
      proc lerp(a, b: ColorRGBX; t: float32): ColorRGBX {...}{.inline, raises: [], tags: [].}
      Linearly interpolate between a and b using t. -
      - -
      proc toPremultipliedAlpha(c: ColorRGBA): ColorRGBA {...}{.inline, raises: [],
      -    tags: [].}
      -
      - -Converts a color to premultiplied alpha from straight alpha. - -
      - -
      proc toStraightAlpha(c: ColorRGBA): ColorRGBA {...}{.inline, raises: [], tags: [].}
      -
      - -Converts a color from premultiplied alpha to straight alpha. - -
      - -
      proc toPremultipliedAlpha(c: Color): Color {...}{.inline, raises: [], tags: [].}
      -
      - -Converts a color to premultiplied alpha from straight alpha. - -
      - -
      proc toStraightAlpha(c: Color): Color {...}{.inline, raises: [], tags: [].}
      -
      - -Converts a color from premultiplied alpha to straight alpha. -
      @@ -239,7 +196,7 @@ Linearly interpolate between a and b using t. diff --git a/docs/pixie/common.idx b/docs/pixie/common.idx index 74e5e8a..667051f 100644 --- a/docs/pixie/common.idx +++ b/docs/pixie/common.idx @@ -1,9 +1,5 @@ PixieError pixie/common.html#PixieError common: PixieError fractional pixie/common.html#fractional,float32 common: fractional(v: float32): float32 lerp pixie/common.html#lerp,uint8,uint8,float32 common: lerp(a, b: uint8; t: float32): uint8 -lerp pixie/common.html#lerp,ColorRGBA,ColorRGBA,float32 common: lerp(a, b: ColorRGBA; t: float32): ColorRGBA +lerp pixie/common.html#lerp,ColorRGBX,ColorRGBX,float32 common: lerp(a, b: ColorRGBX; t: float32): ColorRGBX lerp pixie/common.html#lerp,Color,Color,float32 common: lerp(a, b: Color; v: float32): Color -toPremultipliedAlpha pixie/common.html#toPremultipliedAlpha,ColorRGBA common: toPremultipliedAlpha(c: ColorRGBA): ColorRGBA -toStraightAlpha pixie/common.html#toStraightAlpha,ColorRGBA common: toStraightAlpha(c: ColorRGBA): ColorRGBA -toPremultipliedAlpha pixie/common.html#toPremultipliedAlpha,Color common: toPremultipliedAlpha(c: Color): Color -toStraightAlpha pixie/common.html#toStraightAlpha,Color common: toStraightAlpha(c: Color): Color diff --git a/docs/pixie/fileformats/bmp.html b/docs/pixie/fileformats/bmp.html index a6e9758..988b096 100644 --- a/docs/pixie/fileformats/bmp.html +++ b/docs/pixie/fileformats/bmp.html @@ -182,7 +182,7 @@ Encodes an image into the BMP file format. diff --git a/docs/pixie/fileformats/jpg.html b/docs/pixie/fileformats/jpg.html index d704c61..a9090e8 100644 --- a/docs/pixie/fileformats/jpg.html +++ b/docs/pixie/fileformats/jpg.html @@ -182,7 +182,7 @@ Encodes Image into a JPEG data string. diff --git a/docs/pixie/fileformats/png.html b/docs/pixie/fileformats/png.html index acc4387..9b3099c 100644 --- a/docs/pixie/fileformats/png.html +++ b/docs/pixie/fileformats/png.html @@ -138,7 +138,7 @@ function main() {

      Consts

      @@ -174,7 +174,7 @@ Decodes the PNG data into an Image. raises: [PixieError, PixieError], tags: [].}
      -Encodes the image data into the PNG file format. +Encodes the image data into the PNG file format. If data points to RGBA data, it is assumed to be straight alpha.
      @@ -201,7 +201,7 @@ Encodes the mask data into the PNG file format.
      diff --git a/docs/pixie/fileformats/svg.html b/docs/pixie/fileformats/svg.html index 0f7162a..72a3b76 100644 --- a/docs/pixie/fileformats/svg.html +++ b/docs/pixie/fileformats/svg.html @@ -171,7 +171,7 @@ Render SVG file and return the image. Defaults to the SVG's view box size. diff --git a/docs/pixie/images.html b/docs/pixie/images.html index e544fd1..74fbf5d 100644 --- a/docs/pixie/images.html +++ b/docs/pixie/images.html @@ -103,7 +103,7 @@ function main() {
    • Image
    • + data*: seq[ColorRGBX]">Image @@ -145,8 +145,8 @@ function main() {
        shift @@ -155,28 +155,23 @@ function main() {
      -
        wh @@ -200,8 +195,8 @@ function main() {
      -
        dataIndex
        • inside @@ -266,12 +256,12 @@ function main() {
          []
        • [],Image,int,int
        • + title="`[]`(image: Image; x, y: int): ColorRGBX">[],Image,int,int
        @@ -296,7 +286,7 @@ function main() {
        Image = ref object
           width*, height*: int
        -  data*: seq[ColorRGBA]
        +  data*: seq[ColorRGBX]
         
        @@ -351,7 +341,7 @@ Returns true if (x, y) is inside the image.
        -
        proc getRgbaUnsafe(image: Image; x, y: int): ColorRGBA {...}{.inline, raises: [],
        +
        proc getRgbaUnsafe(image: Image; x, y: int): ColorRGBX {...}{.inline, raises: [],
             tags: [].}
        @@ -362,14 +352,14 @@ Gets a color from (x, y) coordinates.
        • No bounds checking *
        -
        proc `[]`(image: Image; x, y: int): ColorRGBA {...}{.inline, raises: [], tags: [].}
        +
        proc `[]`(image: Image; x, y: int): ColorRGBX {...}{.inline, raises: [], tags: [].}
        Gets a pixel at (x, y) or returns transparent black if outside of bounds.
        - -
        proc setRgbaUnsafe(image: Image; x, y: int; rgba: ColorRGBA) {...}{.inline,
        +
        +
        proc setRgbaUnsafe(image: Image; x, y: int; rgba: ColorRGBX) {...}{.inline,
             raises: [], tags: [].}
        @@ -379,24 +369,24 @@ Sets a color from (x, y) coordinates.
        • No bounds checking *
        - -
        proc `[]=`(image: Image; x, y: int; rgba: ColorRGBA) {...}{.inline, raises: [],
        +
        +
        proc `[]=`(image: Image; x, y: int; rgba: ColorRGBX) {...}{.inline, raises: [],
             tags: [].}
        Sets a pixel at (x, y) or does nothing if outside of bounds.
        - -
        proc fillUnsafe(data: var seq[ColorRGBA]; rgba: ColorRGBA; start, len: int) {...}{.
        +
        +
        proc fillUnsafe(data: var seq[ColorRGBX]; rgba: ColorRGBX; start, len: int) {...}{.
             raises: [], tags: [].}
        Fills the image data with the parameter color starting at index start and continuing for len indices.
        - -
        proc fill(image: Image; rgba: ColorRGBA) {...}{.inline, raises: [], tags: [].}
        + +
        proc fill(image: Image; rgba: ColorRGBX) {...}{.inline, raises: [], tags: [].}
        Fills the image with the parameter color. @@ -445,20 +435,6 @@ Scales the image down by an integer scale. Scales image up by 2 ^ power. -
        - -
        proc toPremultipliedAlpha(image: Image) {...}{.raises: [], tags: [].}
        -
        - -Converts an image to premultiplied alpha from straight alpha. - -
        - -
        proc toStraightAlpha(image: Image) {...}{.raises: [], tags: [].}
        -
        - -Converts an image from premultiplied alpha to straight alpha. This is expensive for large images. -
        proc applyOpacity(target: Image | Mask; opacity: float32)
        @@ -489,7 +465,7 @@ Returns a new mask using the alpha values of the parameter image. -
        proc getRgbaSmooth(image: Image; x, y: float32; wrapped = false): ColorRGBA {...}{.
        +
        proc getRgbaSmooth(image: Image; x, y: float32; wrapped = false): ColorRGBX {...}{.
             raises: [], tags: [].}
        @@ -583,8 +559,8 @@ Resize an image to a given hight and width. Shifts the target by offset.
        - -
        proc shadow(image: Image; offset: Vec2; spread, blur: float32; color: ColorRGBA): Image {...}{.
        +
        +
        proc shadow(image: Image; offset: Vec2; spread, blur: float32; color: ColorRGBX): Image {...}{.
             raises: [PixieError, Exception], tags: [RootEffect].}
        @@ -601,7 +577,7 @@ Create a shadow of the image with the offset, spread and blur. diff --git a/docs/pixie/images.idx b/docs/pixie/images.idx index bfa9e82..380844e 100644 --- a/docs/pixie/images.idx +++ b/docs/pixie/images.idx @@ -5,25 +5,23 @@ copy pixie/images.html#copy,Image images: copy(image: Image): Image `$` pixie/images.html#$,Image images: `$`(image: Image): string inside pixie/images.html#inside,Image,int,int images: inside(image: Image; x, y: int): bool dataIndex pixie/images.html#dataIndex,Image,int,int images: dataIndex(image: Image; x, y: int): int -getRgbaUnsafe pixie/images.html#getRgbaUnsafe,Image,int,int images: getRgbaUnsafe(image: Image; x, y: int): ColorRGBA -`[]` pixie/images.html#[],Image,int,int images: `[]`(image: Image; x, y: int): ColorRGBA -setRgbaUnsafe pixie/images.html#setRgbaUnsafe,Image,int,int,ColorRGBA images: setRgbaUnsafe(image: Image; x, y: int; rgba: ColorRGBA) -`[]=` pixie/images.html#[]=,Image,int,int,ColorRGBA images: `[]=`(image: Image; x, y: int; rgba: ColorRGBA) -fillUnsafe pixie/images.html#fillUnsafe,seq[ColorRGBA],ColorRGBA,int,int images: fillUnsafe(data: var seq[ColorRGBA]; rgba: ColorRGBA; start, len: int) -fill pixie/images.html#fill,Image,ColorRGBA images: fill(image: Image; rgba: ColorRGBA) +getRgbaUnsafe pixie/images.html#getRgbaUnsafe,Image,int,int images: getRgbaUnsafe(image: Image; x, y: int): ColorRGBX +`[]` pixie/images.html#[],Image,int,int images: `[]`(image: Image; x, y: int): ColorRGBX +setRgbaUnsafe pixie/images.html#setRgbaUnsafe,Image,int,int,ColorRGBX images: setRgbaUnsafe(image: Image; x, y: int; rgba: ColorRGBX) +`[]=` pixie/images.html#[]=,Image,int,int,ColorRGBX images: `[]=`(image: Image; x, y: int; rgba: ColorRGBX) +fillUnsafe pixie/images.html#fillUnsafe,seq[ColorRGBX],ColorRGBX,int,int images: fillUnsafe(data: var seq[ColorRGBX]; rgba: ColorRGBX; start, len: int) +fill pixie/images.html#fill,Image,ColorRGBX images: fill(image: Image; rgba: ColorRGBX) flipHorizontal pixie/images.html#flipHorizontal,Image images: flipHorizontal(image: Image) flipVertical pixie/images.html#flipVertical,Image images: flipVertical(image: Image) subImage pixie/images.html#subImage,Image,int,int,int,int images: subImage(image: Image; x, y, w, h: int): Image superImage pixie/images.html#superImage,Image,int,int,int,int images: superImage(image: Image; x, y, w, h: int): Image minifyBy2 pixie/images.html#minifyBy2,Image,int images: minifyBy2(image: Image; power = 1): Image magnifyBy2 pixie/images.html#magnifyBy2,Image,int images: magnifyBy2(image: Image; power = 1): Image -toPremultipliedAlpha pixie/images.html#toPremultipliedAlpha,Image images: toPremultipliedAlpha(image: Image) -toStraightAlpha pixie/images.html#toStraightAlpha,Image images: toStraightAlpha(image: Image) applyOpacity pixie/images.html#applyOpacity,,float32 images: applyOpacity(target: Image | Mask; opacity: float32) invert pixie/images.html#invert images: invert(target: Image | Mask) blur pixie/images.html#blur,,float32,uint32 images: blur(target: Image | Mask; radius: float32; offBounds: uint32 = 0) newMask pixie/images.html#newMask,Image images: newMask(image: Image): Mask -getRgbaSmooth pixie/images.html#getRgbaSmooth,Image,float32,float32 images: getRgbaSmooth(image: Image; x, y: float32; wrapped = false): ColorRGBA +getRgbaSmooth pixie/images.html#getRgbaSmooth,Image,float32,float32 images: getRgbaSmooth(image: Image; x, y: float32; wrapped = false): ColorRGBX draw pixie/images.html#draw,Image,Image,Mat3 images: draw(a, b: Image; mat: Mat3; blendMode = bmNormal) draw pixie/images.html#draw,Image,Image images: draw(a, b: Image; pos = vec2(0, 0); blendMode = bmNormal) draw pixie/images.html#draw,Image,Mask,Mat3 images: draw(image: Image; mask: Mask; mat: Mat3; blendMode = bmMask) @@ -35,4 +33,4 @@ draw pixie/images.html#draw,Mask,Image images: draw(mask: Mask; image: Image; po drawTiled pixie/images.html#drawTiled,Image,Image,Mat3 images: drawTiled(dest, src: Image; mat: Mat3; blendMode = bmNormal) resize pixie/images.html#resize,Image,int,int images: resize(srcImage: Image; width, height: int): Image shift pixie/images.html#shift,,Vec2 images: shift(target: Image | Mask; offset: Vec2) -shadow pixie/images.html#shadow,Image,Vec2,float32,float32,ColorRGBA images: shadow(image: Image; offset: Vec2; spread, blur: float32; color: ColorRGBA): Image +shadow pixie/images.html#shadow,Image,Vec2,float32,float32,ColorRGBX images: shadow(image: Image; offset: Vec2; spread, blur: float32; color: ColorRGBX): Image diff --git a/docs/pixie/internal.html b/docs/pixie/internal.html index 8c1a79f..bc4eeb3 100644 --- a/docs/pixie/internal.html +++ b/docs/pixie/internal.html @@ -94,7 +94,12 @@ function main() {
      • Procs
          - @@ -118,6 +128,20 @@ function main() {

          Procs

          + +
          proc toStraightAlpha(data: var seq[ColorRGBA | ColorRGBX])
          +
          + +Converts an image from premultiplied alpha to straight alpha. This is expensive for large images. + +
          + +
          proc toPremultipliedAlpha(data: var seq[ColorRGBA | ColorRGBX])
          +
          + +Converts an image to premultiplied alpha from straight alpha. + +
          proc packAlphaValues(v: M128i): M128i {...}{.inline, raises: [], tags: [].}
          @@ -142,7 +166,7 @@ Unpack the first 32 bits into 4 rgba(0, 0, 0, value)
          diff --git a/docs/pixie/internal.idx b/docs/pixie/internal.idx index 38f86be..f38462f 100644 --- a/docs/pixie/internal.idx +++ b/docs/pixie/internal.idx @@ -1,2 +1,4 @@ +toStraightAlpha pixie/internal.html#toStraightAlpha,seq[] internal: toStraightAlpha(data: var seq[ColorRGBA | ColorRGBX]) +toPremultipliedAlpha pixie/internal.html#toPremultipliedAlpha,seq[] internal: toPremultipliedAlpha(data: var seq[ColorRGBA | ColorRGBX]) packAlphaValues pixie/internal.html#packAlphaValues,M128i internal: packAlphaValues(v: M128i): M128i unpackAlphaValues pixie/internal.html#unpackAlphaValues,M128i internal: unpackAlphaValues(v: M128i): M128i diff --git a/docs/pixie/masks.html b/docs/pixie/masks.html index 3310c50..a5c4e80 100644 --- a/docs/pixie/masks.html +++ b/docs/pixie/masks.html @@ -354,7 +354,7 @@ A value of 0 stays 0. Anything else turns into 255. diff --git a/docs/pixie/paints.html b/docs/pixie/paints.html index 3bbc62c..b0b6bb0 100644 --- a/docs/pixie/paints.html +++ b/docs/pixie/paints.html @@ -108,7 +108,7 @@ function main() { title="Paint = ref object case kind*: PaintKind of pkSolid: - color*: ColorRGBA ## Color to fill with. + color*: ColorRGBX ## Color to fill with. of pkImage, pkImageTiled: image*: Image ## Image to fill with. @@ -121,7 +121,7 @@ function main() { blendMode*: BlendMode ## Blend mode.">Paint
        • ColorStop
        @@ -159,7 +159,7 @@ function main() {

        Types

        @@ -177,7 +177,7 @@ function main() {
        Paint = ref object
           case kind*: PaintKind
           of pkSolid:
        -      color*: ColorRGBA      ## Color to fill with.
        +      color*: ColorRGBX      ## Color to fill with.
             
           of pkImage, pkImageTiled:
               image*: Image          ## Image to fill with.
        @@ -196,7 +196,7 @@ Paint used to fill paths.
         
      • ColorStop = object
        -  color*: Color              ## Color of the stop
        +  color*: ColorRGBX          ## Color of the stop
           position*: float32         ## Gradient Stop position 0..1.
           
        @@ -243,7 +243,7 @@ Angular gradient. diff --git a/docs/pixie/paths.html b/docs/pixie/paths.html index 5220dc4..ea48e66 100644 --- a/docs/pixie/paths.html +++ b/docs/pixie/paths.html @@ -152,13 +152,13 @@ function main() {
        fillPath -
      • fillPath,Image,SomePath,ColorRGBA
      • -
      • fillPath,Image,SomePath,ColorRGBA,
      • +
      • fillPath,Image,SomePath,ColorRGBX
      • +
      • fillPath,Image,SomePath,ColorRGBX,
      • fillPath,Mask,SomePath
      • - -
        proc fillPath(image: Image; path: SomePath; color: ColorRGBA;
        +
        +
        proc fillPath(image: Image; path: SomePath; color: ColorRGBX;
                       windingRule = wrNonZero; blendMode = bmNormal) {...}{.inline.}
        Fills a path.
        - -
        proc fillPath(image: Image; path: SomePath; color: ColorRGBA;
        +
        +
        proc fillPath(image: Image; path: SomePath; color: ColorRGBX;
                       transform: Vec2 | Mat3; windingRule = wrNonZero;
                       blendMode = bmNormal)
        @@ -606,8 +606,8 @@ Fills a path. Fills a path.
        - -
        proc strokePath(image: Image; path: SomePath; color: ColorRGBA;
        +
        +
        proc strokePath(image: Image; path: SomePath; color: ColorRGBX;
                         strokeWidth = 1.0; lineCap = lcButt; lineJoin = ljMiter;
                         blendMode = bmNormal)
        @@ -615,8 +615,8 @@ Fills a path. Strokes a path.
        - -
        proc strokePath(image: Image; path: SomePath; color: ColorRGBA;
        +
        +
        proc strokePath(image: Image; path: SomePath; color: ColorRGBX;
                         transform: Vec2 | Mat3; strokeWidth = 1.0; lineCap = lcButt;
                         lineJoin = ljMiter; blendMode = bmNormal)
        @@ -662,7 +662,7 @@ Return elements in pairs: (1st, 2nd), (2nd, 3rd) ... (n - 1, last). diff --git a/docs/pixie/paths.idx b/docs/pixie/paths.idx index 355372a..aa48648 100644 --- a/docs/pixie/paths.idx +++ b/docs/pixie/paths.idx @@ -60,12 +60,12 @@ polygon pixie/paths.html#polygon,Path,float32,float32,float32,int paths: polygon polygon pixie/paths.html#polygon,Path,Vec2,float32,int paths: polygon(path: var Path; pos: Vec2; size: float32; sides: int) commandsToShapes pixie/paths.html#commandsToShapes,Path,float32 paths: commandsToShapes(path: Path; pixelScale: float32 = 1.0): seq[seq[Vec2]] segments pixie/paths.html#segments.i,seq[Vec2] paths: segments(s: seq[Vec2]): Segment -fillPath pixie/paths.html#fillPath,Image,SomePath,ColorRGBA paths: fillPath(image: Image; path: SomePath; color: ColorRGBA;\n windingRule = wrNonZero; blendMode = bmNormal) -fillPath pixie/paths.html#fillPath,Image,SomePath,ColorRGBA, paths: fillPath(image: Image; path: SomePath; color: ColorRGBA; transform: Vec2 | Mat3;\n windingRule = wrNonZero; blendMode = bmNormal) +fillPath pixie/paths.html#fillPath,Image,SomePath,ColorRGBX paths: fillPath(image: Image; path: SomePath; color: ColorRGBX;\n windingRule = wrNonZero; blendMode = bmNormal) +fillPath pixie/paths.html#fillPath,Image,SomePath,ColorRGBX, paths: fillPath(image: Image; path: SomePath; color: ColorRGBX; transform: Vec2 | Mat3;\n windingRule = wrNonZero; blendMode = bmNormal) fillPath pixie/paths.html#fillPath,Mask,SomePath paths: fillPath(mask: Mask; path: SomePath; windingRule = wrNonZero) fillPath pixie/paths.html#fillPath,Mask,SomePath, paths: fillPath(mask: Mask; path: SomePath; transform: Vec2 | Mat3;\n windingRule = wrNonZero) fillPath pixie/paths.html#fillPath,Image,SomePath,Paint paths: fillPath(image: Image; path: SomePath; paint: Paint; windingRule = wrNonZero) -strokePath pixie/paths.html#strokePath,Image,SomePath,ColorRGBA,float paths: strokePath(image: Image; path: SomePath; color: ColorRGBA; strokeWidth = 1.0;\n lineCap = lcButt; lineJoin = ljMiter; blendMode = bmNormal) -strokePath pixie/paths.html#strokePath,Image,SomePath,ColorRGBA,,float paths: strokePath(image: Image; path: SomePath; color: ColorRGBA;\n transform: Vec2 | Mat3; strokeWidth = 1.0; lineCap = lcButt;\n lineJoin = ljMiter; blendMode = bmNormal) +strokePath pixie/paths.html#strokePath,Image,SomePath,ColorRGBX,float paths: strokePath(image: Image; path: SomePath; color: ColorRGBX; strokeWidth = 1.0;\n lineCap = lcButt; lineJoin = ljMiter; blendMode = bmNormal) +strokePath pixie/paths.html#strokePath,Image,SomePath,ColorRGBX,,float paths: strokePath(image: Image; path: SomePath; color: ColorRGBX;\n transform: Vec2 | Mat3; strokeWidth = 1.0; lineCap = lcButt;\n lineJoin = ljMiter; blendMode = bmNormal) strokePath pixie/paths.html#strokePath,Mask,SomePath,float paths: strokePath(mask: Mask; path: SomePath; strokeWidth = 1.0; lineCap = lcButt;\n lineJoin = ljMiter) strokePath pixie/paths.html#strokePath,Mask,SomePath,,float paths: strokePath(mask: Mask; path: SomePath; transform: Vec2 | Mat3;\n strokeWidth = 1.0; lineCap = lcButt; lineJoin = ljMiter) diff --git a/docs/theindex.html b/docs/theindex.html index aac6e02..bbe5645 100644 --- a/docs/theindex.html +++ b/docs/theindex.html @@ -74,13 +74,13 @@ function main() {
      `[]=`:
      `[]`:
      @@ -358,7 +358,7 @@ function main() {
      fill:
      @@ -388,12 +388,12 @@ function main() {
      fillPath:
      fillUnsafe:
      @@ -452,11 +452,11 @@ function main() {
      getRgbaSmooth:
      getRgbaUnsafe:
      getValueSmooth:
      @@ -748,7 +748,7 @@ function main() {
      setRgbaUnsafe:
      setValueUnsafe:
      shadow:
      shift:
      strokePath: