Commit graph

500 commits

Author SHA1 Message Date
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 c166183f35 inline 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 33b8a5a839 cleaner + perf 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 9b7fa748d8 todo 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 0ff8eb39c9 bugfix, dont ignore translate for initial relative move 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 8c11669e7f f 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 4804293a4a copymem for unfiltered rows 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 6c9abf4084 fuzz fix 2021-05-11 22:40:24 -05:00
Ryan Oldenburg f325633a9b feedback addressed 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 bf4174abd9 readfont extensions 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 8574b12900 typeface + cleaner 2021-05-11 22:40:23 -05:00
Ryan Oldenburg a076205882 f 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 566636c99e feedback 2021-05-11 22:40:23 -05:00
Ryan Oldenburg 512e49e6e7 only return kern if we parsed it 2021-05-11 22:40:23 -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 9dc96f45ce kern parse 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 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
Joris Bontje 2e93a75bb7 Add SVG scale transform and non-zero / negative viewbox offset 2021-04-21 15:28:53 +02:00
treeform 101619a9e6 Fix small png loading bug. 2021-04-19 08:48:51 -07:00
treeform a781580ac8 1.1.3: Use fractional from vmath. 2021-04-18 16:54:00 -07:00
Ryan Oldenburg 8dbb78c387 png decode perf improvement 2021-04-11 13:09:16 -05:00
treeform 75915ab05f 1.1.2: Update deps and docs. 2021-03-26 14:10:11 -07:00
treeform 4aa1afc0c2 1.1.1 Fix bug with stroke cricle. 2021-03-15 08:05:47 -07:00
treeform d7330c7eb3 Small demo.nim import/export improvement. 2021-03-11 20:48:03 -08:00
treeform 38bcd8973c
Add demo.nim to be used for active (keyboard, mouse, screen) demos. (#151) 2021-03-11 20:09:12 -08:00
Ryan Oldenburg 99a2a0ba40 1.1.0 SomeColor 2021-03-11 21:47:45 -06:00
Ryan Oldenburg ad24e4d836 1.0.5 converters, morepretty 2021-03-03 12:48:22 -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 d248457b0b Some gif improvments. 2021-03-01 08:46:03 -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 a71b3150c7 add image diff 2021-02-28 01:00:56 -06:00
treeform a79cad9d90 Rename lookup to kernel. 2021-02-26 23:06:13 -08:00
treeform 9508150e99 Fix bug with mask.fillPath. 2021-02-26 23:01:28 -08:00
Ryan Oldenburg 7aee1b5d82 spread optimization + spread and blur bugfix 2021-02-27 00:36:35 -06:00
Ryan Oldenburg a04388ee43 funny blur speedup 2021-02-27 00:01:01 -06:00
Ryan Oldenburg 6ec7ec0fbb f 2021-02-26 23:37:47 -06:00
Ryan Oldenburg 3b109567e9 remove todo 2021-02-26 19:23:19 -06:00
Ryan Oldenburg 01b353f903 simpler 2021-02-26 19:21:44 -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
Ryan Oldenburg 39d316d0d7 blur performance improved 2021-02-26 18:06:28 -06:00
Ryan Oldenburg 117cad90b2 separate image and masks blur 2021-02-26 17:35:52 -06:00
Ryan Oldenburg 5722ef51d3 quick optimization 2021-02-26 10:28:05 -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 b623150b3f shortcut 2021-02-25 15:13:14 -06:00
Ryan Oldenburg 5e3e489f61 internal.nim 2021-02-25 12:16:33 -06:00
Ryan Oldenburg 751b804679 morepretty 2021-02-25 11:43:09 -06:00
Ryan Oldenburg 7b9d968381 small comment things 2021-02-25 11:39:30 -06:00
Ryan Oldenburg 34b5f07f1f
tiled draw path + removed 2 exported procs from paints.nim (#132) 2021-02-25 09:05:20 -08:00
treeform f68fb9919c Another doc pass. 2021-02-25 07:26:51 -08:00
treeform a038e5ae6e Another doc pass. 2021-02-25 07:16:20 -08:00
treeform 50a472ceb9 Another doc pass. 2021-02-25 07:05:53 -08:00
treeform 4a4c260064 Doc pass. 2021-02-25 06:52:20 -08:00
treeform 12b9ad2ff7 add docs comments 2021-02-25 06:27:58 -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 704ecb7848 fix rendering artifact with clever idea from treeform 2021-02-24 23:09:06 -06:00
Ryan Oldenburg 2b000ca9ca add missing pixelScale 2021-02-24 22:22:33 -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 042d455cb0 fix 2021-02-23 20:25:23 -06:00
Ryan Oldenburg 11fe02c25e strip 2021-02-23 17:54:26 -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 dc0246814e path parse bugfix 2021-02-23 14:09:15 -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 cda6dabf60 f 2021-02-23 13:26:59 -06:00
Ryan Oldenburg bdbaaa33cb f 2021-02-23 02:00:34 -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 fc2dc50c39 sweep flag fix for svg icons 2021-02-23 00:24:27 -06:00
Ryan Oldenburg 7b02ca4dd5 remove code 2021-02-22 23:20:05 -06:00
Ryan Oldenburg 5fa35c7852 default svg load 2021-02-22 22:35:08 -06:00
Ryan Oldenburg 40afb8e4c4 bootstrap icons svg megatest + parse fixes 2021-02-22 22:14:06 -06:00
Ryan Oldenburg 8cf6c5cd2f move comment 2021-02-22 18:42:44 -06:00
Ryan Oldenburg 6cb2491825 f 2021-02-22 18:39:27 -06:00
Ryan Oldenburg 7b0bd8753f strokes always wrNonZero 2021-02-22 16:30:28 -06:00
Ryan Oldenburg bca5119e8b linecap, linejoin 2021-02-20 13:31:25 -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 76ed801aa7 remove windingrule param from stroke proc 2021-02-18 12:16:01 -06:00
Ryan Oldenburg 445db73f00 small improvements 2021-02-17 23:23:19 -06:00
Ryan Oldenburg d1a5f22b1f f 2021-02-17 13:21:28 -06:00
Ryan Oldenburg 962cc4aa7e faster paths fill 2021-02-17 03:21:11 -06:00
Ryan Oldenburg 52e65f9d73 small change 2021-02-17 01:18:30 -06:00
treeform f641b46049 put gradients back 2021-02-15 23:31:10 -08:00
Ryan Oldenburg f2b3c67d4b morepretty 2021-02-16 00:35:36 -06:00
Ryan Oldenburg 68e2522074 performance improvements 2021-02-16 00:35:08 -06:00
treeform 955d813a27 Add offBounds to blur so that we can shadow from the edge. 2021-02-15 18:24:53 -08:00
treeform 219dc23bf9 Gradient rotation fix. 2021-02-15 18:23:31 -08:00
treeform 344062fda2 Add gradients. 2021-02-14 21:32:31 -08:00
treeform 39b0446d60 Add roundedRect based on splines. 2021-02-14 09:52:41 -08:00
treeform 7ff64d0ec8 small comment 2021-02-13 20:14:10 -08:00
Ryan Oldenburg fc23bda80f blends exports 2021-02-13 20:57:58 -06:00
Ryan Oldenburg 28f831249f better segment partitioning, faster svg path fill 2021-02-13 20:52:53 -06:00
Ryan Oldenburg b800c77ab5 cleaner + faster simd 2021-02-13 20:52:53 -06:00
Ryan Oldenburg 4a9c26d4ff mask+mask bugfix 2021-02-13 16:03:15 -06:00
Ryan Oldenburg 64e5016df6 draw mask.image simd 2021-02-11 22:37:40 -06:00
Ryan Oldenburg debceb255a image + (image|mask) works 2021-02-11 22:12:30 -06:00
Ryan Oldenburg 243f9a3ba1 better names 2021-02-11 22:12:12 -06:00
Ryan Oldenburg 70ab79b607 draw uber takes Image | Mask + works w/o simd so far 2021-02-11 15:29:11 -06:00
Ryan Oldenburg abbcc717cd fix 2021-02-11 14:40:30 -06:00
Ryan Oldenburg 50a4687d67 move 2021-02-11 14:08:09 -06:00
Ryan Oldenburg d0294ebec7 move to bottom of file now 2021-02-11 14:05:37 -06:00
Ryan Oldenburg 01f6248522 simd image blend when possible 2021-02-11 13:57:19 -06:00
Ryan Oldenburg b6b1d3a44c sharpen -> ceil 2021-02-11 13:14:06 -06:00
Ryan Oldenburg 7e06625c27 y min, max when drawing optimization 2021-02-11 12:45:52 -06:00
Ryan Oldenburg a40683920d sharpen masks + simd, blend masks 2021-02-11 02:38:27 -06:00
Ryan Oldenburg e17d0c742d roundedRect clockwise vs counter 2021-02-11 01:44:46 -06:00
Ryan Oldenburg d8b01fa885 comment out blends not avail in figma 2021-02-10 22:21:56 -06:00
Ryan Oldenburg b3bc1225d4 f 2021-02-10 16:31:12 -06:00
Ryan Oldenburg 55051f944c premul alpha version of many blends, ~4x faster for each 2021-02-10 15:59:08 -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 0cdb84407b unused 2021-02-10 13:48:18 -06:00
Ryan Oldenburg 0cf0c95791 fix exclusion blend 2021-02-10 13:46:58 -06:00
Ryan Oldenburg 81dbfacdda blendExclusion 50% faster 2021-02-09 23:34:49 -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 d9fcf71f43 blendExclusion passes tests 2021-02-09 23:28:56 -06:00
Ryan Oldenburg 3ec1710e2e blurs 2021-02-09 22:25:15 -06:00
Ryan Oldenburg b074e9bfc7 mask blends 2021-02-09 16:37:07 -06:00
Ryan Oldenburg 264b30b118 image.newMask 35% faster with simd 2021-02-09 16:08:08 -06:00
Ryan Oldenburg c95df08cbe remove old 2021-02-09 15:28:47 -06:00
Ryan Oldenburg 29047d6a46 blends, blurs, masks checkpoint 2021-02-09 15:22:37 -06:00
Ryan Oldenburg 913c7e9498 more premul blends 2021-02-09 15:22:37 -06:00
Ryan Oldenburg 8231583429 updated exmaples, bugfix 2021-02-08 23:07:46 -06:00
Ryan Oldenburg ad11eac936 unused 2021-02-08 22:42:55 -06:00
Ryan Oldenburg 7b012e23bb fix comments 2021-02-08 22:39:28 -06:00
Ryan Oldenburg 3e096792c0 move 2021-02-08 22:39:28 -06:00
Ryan Oldenburg 1ed4077249 invert for mask, premul alpha image 2021-02-08 22:27:00 -06:00