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.
-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.
-
-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.
- Made with Nim. Generated: 2021-02-25 18:15:59 UTC
+ Made with Nim. Generated: 2021-02-26 01:51:48 UTC
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() {
+
+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)
- Made with Nim. Generated: 2021-02-25 18:15:59 UTC
+ Made with Nim. Generated: 2021-02-26 01:51:48 UTC
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.
- Made with Nim. Generated: 2021-02-25 18:15:59 UTC
+ Made with Nim. Generated: 2021-02-26 01:51:48 UTC
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() {
@@ -177,7 +177,7 @@ function main() {
Paint = ref object
case kind*: PaintKind
of pkSolid:
- color*: ColorRGBA
+ color*: ColorRGBX
of pkImage, pkImageTiled:
image*: Image
@@ -196,7 +196,7 @@ Paint used to fill paths.
ColorStop = object
- color*: Color
+ color*: ColorRGBX
position*: float32
@@ -243,7 +243,7 @@ Angular gradient.
- Made with Nim. Generated: 2021-02-25 18:16:00 UTC
+ Made with Nim. Generated: 2021-02-26 01:51:49 UTC
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() {
strokePath
- - strokePath,Image,SomePath,ColorRGBA,float
- - strokePath,Image,SomePath,ColorRGBX,float
+ - strokePath,Image,SomePath,ColorRGBA,,float
+ lineJoin = ljMiter; blendMode = bmNormal)">strokePath,Image,SomePath,ColorRGBX,,float
- strokePath,Mask,SomePath,float
@@ -252,12 +252,12 @@ 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).
- Made with Nim. Generated: 2021-02-25 18:16:00 UTC
+ Made with Nim. Generated: 2021-02-26 01:51:49 UTC
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:
toStraightAlpha:
TQuad: