Commit graph

375 commits

Author SHA1 Message Date
treeform 1ee2532087 Draw with source cutout. 2021-06-25 22:07:02 -07:00
treeform 8736b74a3e add images 2021-06-25 21:52:48 -07:00
treeform f62b3962f4 add images 2021-06-25 20:36:24 -07:00
treeform ecb3673372 Add drawImage to context. 2021-06-25 20:35:40 -07:00
Ryan Oldenburg 9e132b6457 small stuff 2021-06-25 16:55:51 -05:00
Ryan Oldenburg 2232e09a27 masks and images conversion 2021-06-25 01:20:04 -05:00
Ryan Oldenburg a33fcd9132 spread benchmarks 2021-06-19 15:26:08 -05:00
Ryan Oldenburg a838de821c paths.nim masks take blendMode for masking, tests, fixes and etc 2021-06-18 21:53:46 -05:00
Ryan Oldenburg 5e4f291f7d add test 2021-06-18 20:41:47 -05:00
treeform 8178670619 add images 2021-06-18 16:42:24 -07:00
treeform 1ee3d3902a Fixing blends 2021-06-18 16:39:55 -07:00
Ryan Oldenburg 51d38c7e37 2x faster mask minifyBy2 2021-06-18 16:04:25 -05:00
Ryan Oldenburg 280089b1b3 restore test 2021-06-18 15:36:00 -05:00
Ryan Oldenburg eb0d607796 add better minify test 2021-06-18 00:47:31 -05:00
Ryan Oldenburg 5ac2dc05f6 unused 2021-06-17 23:10:14 -05:00
Ryan Oldenburg d18a268600 faster + benchmark 2021-06-17 23:09:00 -05:00
Ryan Oldenburg 848a051310 add scale draw test 2021-06-17 21:39:00 -05:00
Ryan Oldenburg e16fcb595d benchmark 2021-06-17 21:25:54 -05:00
Ryan Oldenburg e4172aefee add magnify tests 2021-06-17 17:34:48 -05:00
Ryan Oldenburg 7dfea4dc39 context.nim -> contexts.nim, pixieDebugSvg 2021-06-12 11:34:45 -05:00
Ryan Oldenburg 7adb5c662f add examples to github actions 2021-06-06 23:39:05 -05:00
Ryan Oldenburg fb87aecd1d fill closes subpaths 2021-06-06 01:17:07 -05:00
Ryan Oldenburg 9ccbcf7347 small 2021-06-04 17:55:07 -05:00
Ryan Oldenburg c124b64eea f 2021-06-04 15:57:04 -05:00
Ryan Oldenburg 57ab45f7a1 2.0.4 2021-06-03 00:08:43 -05:00
Ryan Oldenburg 4096ed585a improve github actions 2021-06-02 23:58:43 -05:00
Ryan Oldenburg 6671103b35 rm duplicate 2021-06-01 01:49:50 -05:00
Ryan Oldenburg 3658ff40c3 context globalAlpha 2021-05-31 21:05:27 -05:00
Ryan Oldenburg 7ea0a37013 morepretty 2021-05-31 20:41:03 -05:00
Ryan Oldenburg 3b6474b565 underline, strikethrough 2021-05-31 20:33:11 -05:00
Ryan Oldenburg de8fda9a81 insertion sort hits faster 2021-05-30 14:54:27 -05:00
Ryan Oldenburg 940f421060 benchmark text 2021-05-29 22:28:53 -05:00
Ryan Oldenburg 9e9d78323f zippy output change 2021-05-29 22:28:38 -05:00
treeform 568c22a56a Merge branch 'master' of github.com:treeform/pixie 2021-05-29 16:26:38 -07:00
treeform b087dd23bd Add fill leak checker (use -d:pixieLeakCheck). 2021-05-29 16:26:31 -07:00
Ryan Oldenburg 382a3b73ce updated megatest images 2021-05-29 17:18:08 -05:00
Ryan Oldenburg 85ae6ab3a9 rename 2021-05-29 15:51:35 -05:00
Ryan Oldenburg 2f8fbcd792 leak fix 2021-05-29 02:26:14 -05:00
Ryan Oldenburg 271e019365 more emoji test 2021-05-28 22:39:59 -05:00
Ryan Oldenburg 2f88639f1d svg bugfixes, improvements, emoji megatests 2021-05-27 19:46:39 -05:00
Ryan Oldenburg 10bc3100e6 docs, bugfix, ctx blend test, remove seq[seq[Vec2]] from SomePath 2021-05-27 17:27:19 -05:00
Ryan Oldenburg 056db32440 blur benchmark comparison 2021-05-24 19:52:04 -05:00
Ryan Oldenburg ca6d891757 rename 2021-05-24 19:43:08 -05:00
Ryan Oldenburg 5358ec6d19 image loop benchmark 2021-05-24 19:40:06 -05:00
Ryan Oldenburg 2afcbaa621 fix path parse bug for m 1 2 3 4 5 6... 2021-05-24 19:25:04 -05:00
Ryan Oldenburg 00dd3faa95 svg stroke-dasharray 2021-05-23 22:31:16 -05:00
Ryan Oldenburg 1e39ce2c80 context line dashes 2021-05-23 21:43:47 -05:00
Ryan Oldenburg dbee65c608 cleaner, icons megatest 2021-05-23 21:23:51 -05:00
Ryan Oldenburg dfc062e0f2 svg miterlimit 2021-05-23 21:18:15 -05:00
Ryan Oldenburg 8ca46d86e3 morepretty 2021-05-23 21:04:58 -05:00
Ryan Oldenburg 67c55b0422 multiple layers test 2021-05-23 20:53:06 -05:00
Ryan Oldenburg b73b88bb63 layers 2021-05-23 20:47:32 -05:00
treeform 6fb1323101
Add dashes. (#202)
* Add dashes.
* Miter limits as ratio everywhere.
* Remove some fill and stroke overloads.
2021-05-23 18:46:19 -07:00
Ryan Oldenburg 41cd488ae3 context clip support 2021-05-22 21:43:42 -05:00
Ryan Oldenburg 5cc8e911d1 move image helpers from pixie.nim to context.nim 2021-05-21 00:54:55 -05:00
Ryan Oldenburg 0d65dffccc add context api 2021-05-19 00:06:02 -05:00
Ryan Oldenburg d87b423430 v2.0.0 add transform to pixie.nim helpers 2021-05-17 23:39:47 -05:00
treeform d37bed2f63 Fix image output diff. 2021-05-11 20:50:06 -07:00
Ryan Oldenburg e5642dc470 f 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 666746d82e span fixes, more tests 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f852d33ada add test 2021-05-11 22:40:39 -05:00
Ryan Oldenburg eae3b5e443 spans 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f9064af992 test 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 11fdc30399 paint on font 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 207608df04 diff img 2021-05-11 22:40:39 -05:00
Ryan Oldenburg ee79db8c88 trailing data test for png 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f969a04a03 move textCase, kerning flag 2021-05-11 22:40:39 -05:00
Ryan Oldenburg e931bd0319 computeBounds, no iterator 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 85bd786dd0 feedback 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 84dd01fd00 update benchmark_fonts 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 37a21ac576 zippy output changed 2021-05-11 22:40:35 -05:00
Ryan Oldenburg eb550c0671 text alignments 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 20eb1af118 selection rects, better initial y 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 5c6725c4e3 handle control runes, newline 2021-05-11 22:40:25 -05:00
Ryan Oldenburg e5a463aaa3 names possibility 2021-05-11 22:40:25 -05:00
Ryan Oldenburg b0e7a1ae56 tests 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 93a854c7b2 improvement? 2021-05-11 22:40:24 -05:00
Ryan Oldenburg eafd18fa7e more tests 2021-05-11 22:40:24 -05:00
Ryan Oldenburg cbfccea851 f 2021-05-11 22:40:24 -05:00
Ryan Oldenburg dc773555a8 f 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 410057806e space fix for paragraph 2021-05-11 22:40:24 -05:00
Ryan Oldenburg cfb00b9b18 font bounds and benchmark 2021-05-11 22:40:24 -05:00
Ryan Oldenburg b42b9d649a svg fonts + move stuff around 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 89225bad6f svg font files 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 7ae3d5c418 megatest start + improvements 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 4bdcc67baa kerning 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 33b87f4e3c f 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 2694a67c52 font api tests 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 082f16096f simple api attempt 1 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 9d2dc5c06f fuzz opentype 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 267294a3e8 basic font start 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 7d3d5acfb5 scale as test 2021-04-26 19:50:00 -05:00
treeform 75915ab05f 1.1.2: Update deps and docs. 2021-03-26 14:10:11 -07:00
Ryan Oldenburg ad24e4d836 1.0.5 converters, morepretty 2021-03-03 12:48:22 -06:00
Ryan Oldenburg b355c25baf superImage benchmark 2021-03-03 00:23:47 -06:00
Ryan Oldenburg 10fb0ad40f use zippy bitstream in gif.nim 2021-03-01 12:02:21 -06:00
treeform c8269d5db9 Add GIF file format. 2021-03-01 08:53:15 -08:00
treeform dc52e6f77b Add gif fuzzing. 2021-03-01 08:38:00 -08:00
treeform c7ff50660e Fix gif test. 2021-03-01 01:07:33 -08:00
treeform 5e7096dfd7 Merge branch 'master' of github.com:treeform/pixie 2021-03-01 01:01:11 -08:00
treeform e0ebc1c655 Started work on gif image loader. 2021-03-01 01:01:04 -08:00
Ryan Oldenburg 7d7a4664f9 1.0.4 2021-02-28 01:12:00 -06:00
Ryan Oldenburg a71b3150c7 add image diff 2021-02-28 01:00:56 -06:00
Ryan Oldenburg 7aee1b5d82 spread optimization + spread and blur bugfix 2021-02-27 00:36:35 -06:00
Ryan Oldenburg 004182a122 simpler + out of bounds color for image blur 2021-02-26 19:10:48 -06:00
Ryan Oldenburg 36352685e1 bugfix blur perf rgba/rgbx 2021-02-26 18:46:21 -06:00
treeform 076dc60468 Fix gradients to use rgbx. 2021-02-25 16:26:55 -08:00
Ryan Oldenburg 64cfab293d migrate public api to rgbx 2021-02-25 18:11:58 -06:00
Ryan Oldenburg f04f8e9478 images are always premultipled alpha 2021-02-25 16:11:36 -06:00
Ryan Oldenburg 751b804679 morepretty 2021-02-25 11:43:09 -06:00
Ryan Oldenburg 34b5f07f1f
tiled draw path + removed 2 exported procs from paints.nim (#132) 2021-02-25 09:05:20 -08:00
Ryan Oldenburg d6e0b06135
updated iconset rendres (#131) 2021-02-24 22:05:32 -08:00
treeform c8c981b04e
Add paints to pixie. (#127)
Add paints for: solid, image, image tiled, linear, radial and angular gradients.
2021-02-24 21:49:21 -08:00
Ryan Oldenburg 6a1131e6f8 for now i guess 2021-02-24 23:38:41 -06:00
Ryan Oldenburg 704ecb7848 fix rendering artifact with clever idea from treeform 2021-02-24 23:09:06 -06:00
Ryan Oldenburg 3d3dc58bce move proc, more tests 2021-02-24 22:19:09 -06:00
Ryan Oldenburg 6e7a08538d linecap, linejoin, miterAngleLimit 2021-02-24 19:48:23 -06:00
Ryan Oldenburg 380d284a66 another iconset + fixes 2021-02-23 17:30:46 -06:00
Ryan Oldenburg ca023c1a08 arc flag parse fix + another icon set 2021-02-23 16:22:29 -06:00
Ryan Oldenburg 987531b018 basic css, ionicons looking much better 2021-02-23 14:46:04 -06:00
Ryan Oldenburg 404b0504ab path commands to shapes bugfix 2021-02-23 13:46:47 -06:00
Ryan Oldenburg aa19910380 merge into test_paths.nim 2021-02-23 13:26:59 -06:00
Ryan Oldenburg 0109fd8a36 new size 2021-02-23 01:58:23 -06:00
Ryan Oldenburg 8c3a5b80cd changed 2021-02-23 01:56:07 -06:00
Ryan Oldenburg dcf0a3fd60 more icon sets, couple fixes 2021-02-23 01:54:51 -06:00
treeform e41b8434eb
Compute pixel scale based on matrix max scale before doing the fill or storke. (#124) 2021-02-22 23:53:26 -08:00
Ryan Oldenburg 5846a415f9 wider image for onion skin diffing 2021-02-23 00:37:56 -06:00
Ryan Oldenburg fc2dc50c39 sweep flag fix for svg icons 2021-02-23 00:24:27 -06:00
Ryan Oldenburg 40afb8e4c4 bootstrap icons svg megatest + parse fixes 2021-02-22 22:14:06 -06:00
Ryan Oldenburg 34b3f09e43 fill and stroke helpers 2021-02-19 12:06:16 -06:00
Ryan Oldenburg b4edd635d5 support rect rx and ry for svg 2021-02-19 01:40:19 -06:00
Ryan Oldenburg 203a657c8a drawPolygon 2021-02-18 16:45:56 -06:00
Ryan Oldenburg 0362d03b0b drawEllipse, drawCircle 2021-02-18 16:33:41 -06:00
Ryan Oldenburg 318d90e509 drawRoundedRect + updated example 2021-02-18 16:23:54 -06:00
Ryan Oldenburg 3016790e8a drawSegment + updated examples 2021-02-18 14:03:08 -06:00
Ryan Oldenburg 505e2ff2d9 drawRect image, mask 2021-02-18 13:35:08 -06:00
Ryan Oldenburg 52e65f9d73 small change 2021-02-17 01:18:30 -06:00
Ryan Oldenburg 331d5dfb37 f 2021-02-16 00:35:36 -06:00
Ryan Oldenburg f2b3c67d4b morepretty 2021-02-16 00:35:36 -06:00
treeform 29ca5501bf drawCorrect vs drawUber benchmark. 2021-02-13 20:13:58 -08:00
Ryan Oldenburg 04c7bd87d8 shadow, spread benchmarks 2021-02-11 15:05:40 -06:00
Ryan Oldenburg d07c77095d blend + rotation mat test 2021-02-11 14:56:47 -06:00
Ryan Oldenburg cb0706efc5 benchmarks 2021-02-11 13:26:38 -06:00
Ryan Oldenburg b6b1d3a44c sharpen -> ceil 2021-02-11 13:14:06 -06:00
Ryan Oldenburg a40683920d sharpen masks + simd, blend masks 2021-02-11 02:38:27 -06:00
Ryan Oldenburg cc63165c9b rest of blends work by converting back to straight alpha first (except 2 missing tests) 2021-02-10 14:37:15 -06:00
Ryan Oldenburg 59b186b535 group float timings (to easily disable, they are going away) 2021-02-09 23:32:13 -06:00
Ryan Oldenburg 3ec1710e2e blurs 2021-02-09 22:25:15 -06:00
Ryan Oldenburg 264b30b118 image.newMask 35% faster with simd 2021-02-09 16:08:08 -06:00
Ryan Oldenburg 29047d6a46 blends, blurs, masks checkpoint 2021-02-09 15:22:37 -06:00