From 530e59c8f22c4961276cc36a280d254cd7508278 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Mon, 25 Apr 2022 00:20:25 -0500 Subject: [PATCH] morepretty --- src/pixie/paths.nim | 3 ++- tests/fuzz_bmp.nim | 2 +- tests/test_bmp.nim | 2 +- tests/test_images_draw.nim | 1 - tests/test_paths.nim | 7 +++++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index d3151fa..cc95c20 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -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): import nimsimd/sse2 diff --git a/tests/fuzz_bmp.nim b/tests/fuzz_bmp.nim index 9ab3ee5..eebee79 100644 --- a/tests/fuzz_bmp.nim +++ b/tests/fuzz_bmp.nim @@ -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() diff --git a/tests/test_bmp.nim b/tests/test_bmp.nim index 80761e5..6eeeaef 100644 --- a/tests/test_bmp.nim +++ b/tests/test_bmp.nim @@ -1,4 +1,4 @@ -import chroma, pixie, pixie/fileformats/bmp, os, strutils +import chroma, os, pixie, pixie/fileformats/bmp, strutils # block: # var image = newImage(4, 2) diff --git a/tests/test_images_draw.nim b/tests/test_images_draw.nim index 513c3d2..4c926f6 100644 --- a/tests/test_images_draw.nim +++ b/tests/test_images_draw.nim @@ -293,7 +293,6 @@ block: let a = newImage(100, 100) a.fill(color(1, 1, 1, 1)) - let draws = [ # Overlaps in bounds (vec2(-50, -50), color(1, 0, 0, 1)), diff --git a/tests/test_paths.nim b/tests/test_paths.nim index fcf38fc..2261d24 100644 --- a/tests/test_paths.nim +++ b/tests/test_paths.nim @@ -460,7 +460,10 @@ block: block: 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 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()) block: @@ -704,7 +707,7 @@ block: let image = newImage(200, 200) image.fill(rgba(255, 255, 255, 255)) - let pathStr =""" + let pathStr = """ L -16370.0 -18156.0 A 4100 4100 0 1 0 -19670 -14134 Z