morepretty

This commit is contained in:
Ryan Oldenburg 2022-04-25 00:20:25 -05:00
parent aed689a7e0
commit 530e59c8f2
5 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,5 @@
import blends, bumpy, chroma, common, images, internal, masks, paints, strutils, vmath, fenv import blends, bumpy, chroma, common, fenv, images, internal, 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

@ -1,4 +1,4 @@
import pixie/common, pixie/fileformats/bmp, random, strformat, flatty/binny, os import flatty/binny, os, pixie/common, pixie/fileformats/bmp, random, strformat
randomize() randomize()

View file

@ -1,4 +1,4 @@
import chroma, pixie, pixie/fileformats/bmp, os, strutils import chroma, os, pixie, pixie/fileformats/bmp, strutils
# block: # block:
# var image = newImage(4, 2) # var image = newImage(4, 2)

View file

@ -293,7 +293,6 @@ block:
let a = newImage(100, 100) let a = newImage(100, 100)
a.fill(color(1, 1, 1, 1)) a.fill(color(1, 1, 1, 1))
let draws = [ let draws = [
# Overlaps in bounds # Overlaps in bounds
(vec2(-50, -50), color(1, 0, 0, 1)), (vec2(-50, -50), color(1, 0, 0, 1)),

View file

@ -460,7 +460,10 @@ block:
block: block:
let mask = newMask(100, 100) let mask = newMask(100, 100)
mask.fillPath("M 10.1 10.1 H 60.1 V 60.1 H 10.1 z") mask.fillPath("M 10.1 10.1 H 60.1 V 60.1 H 10.1 z")
mask.fillPath("M 30.1 30.1 H 80.1 V 80.1 H 30.1 z", blendMode = ExcludeMaskBlend) mask.fillPath(
"M 30.1 30.1 H 80.1 V 80.1 H 30.1 z",
blendMode = ExcludeMaskBlend
)
writeFile("tests/paths/maskRectExcludeMaskAA.png", mask.encodePng()) writeFile("tests/paths/maskRectExcludeMaskAA.png", mask.encodePng())
block: block:
@ -704,7 +707,7 @@ block:
let image = newImage(200, 200) let image = newImage(200, 200)
image.fill(rgba(255, 255, 255, 255)) image.fill(rgba(255, 255, 255, 255))
let pathStr =""" let pathStr = """
L -16370.0 -18156.0 L -16370.0 -18156.0
A 4100 4100 0 1 0 -19670 -14134 A 4100 4100 0 1 0 -19670 -14134
Z Z