morepretty

This commit is contained in:
Ryan Oldenburg 2021-02-25 11:43:09 -06:00
parent 7b9d968381
commit 751b804679
8 changed files with 54 additions and 55 deletions

View file

@ -1,9 +1,8 @@
import bumpy, chroma, flatty/binny, os, pixie/blends, pixie/common, import bumpy, chroma, flatty/binny, os, pixie/blends, pixie/common,
pixie/fileformats/bmp, pixie/fileformats/jpg, pixie/fileformats/png, pixie/fileformats/bmp, pixie/fileformats/jpg, pixie/fileformats/png,
pixie/fileformats/svg, pixie/paints, pixie/images, pixie/masks, pixie/fileformats/svg, pixie/images, pixie/masks, pixie/paints, pixie/paths, vmath
pixie/paths, vmath
export blends, bumpy, chroma, common, paints, images, masks, paths, vmath export blends, bumpy, chroma, common, images, masks, paints, paths, vmath
type type
FileFormat* = enum FileFormat* = enum

View file

@ -35,7 +35,6 @@ type
bmIntersectMask bmIntersectMask
bmExcludeMask bmExcludeMask
Blender* = proc(backdrop, source: ColorRGBA): ColorRGBA ## Function signature Blender* = proc(backdrop, source: ColorRGBA): ColorRGBA ## Function signature
## returned by blender. ## returned by blender.
Masker* = proc(backdrop, source: uint8): uint8 ## Function signature returned Masker* = proc(backdrop, source: uint8): uint8 ## Function signature returned

View file

@ -543,7 +543,9 @@ proc getRgbaSmooth*(image: Image, x, y: float32, wrapped = false): ColorRGBA =
lerp(bottomMix, topMix, diffY) lerp(bottomMix, topMix, diffY)
proc drawCorrect(a, b: Image | Mask, mat = mat3(), tiled = false, blendMode = bmNormal) = proc drawCorrect(
a, b: Image | Mask, mat = mat3(), tiled = false, blendMode = bmNormal
) =
## Draws one image onto another using matrix with color blending. ## Draws one image onto another using matrix with color blending.
when type(a) is Image: when type(a) is Image:

View file

@ -1,4 +1,4 @@
import chroma, common, images, vmath, blends import blends, chroma, common, images, vmath
type type
PaintKind* = enum PaintKind* = enum

View file

@ -1,4 +1,4 @@
import blends, bumpy, chroma, common, images, masks, strutils, vmath, paints import blends, bumpy, chroma, common, images, masks, paints, strutils, vmath
when defined(amd64) and not defined(pixieNoSimd): when defined(amd64) and not defined(pixieNoSimd):
import nimsimd/sse2 import nimsimd/sse2

View file

@ -46,7 +46,6 @@ block:
) )
image.writeFile("tests/images/paths/paintImageTiled.png") image.writeFile("tests/images/paths/paintImageTiled.png")
block: block:
let let
image = newImage(100, 100) image = newImage(100, 100)