Commit graph

25 commits

Author SHA1 Message Date
0ef4f9b654
svg -> jpeg | different voronoi diagram method
Svg diagrams backend to jpeg was to make it easier to render & share.
The existing method stressed firefox if too many shapes were there.

The new voronoi diagram method is much faster. Examples now take
approximately 40 seconds to render as opposed to the 5-10 minutes
previously.

In short, it no longer makes the Delunay triangulation. It feeds the 20
closest points to the candidate midpoint. Those points turn out to be
enough, no need to construct the planar graph.

Additionally, dependencies were bumped.
2024-06-07 02:53:06 -04:00
7f6a95d19f
format .cabal & comment out profiling 2024-04-19 15:16:32 -07:00
b4ee69cd7f
strictly formatting changes 2024-04-18 02:54:07 -07:00
87647dc427
upgrade from hip to massiv-io, move to nixpkgs unstable in the process 2024-02-22 23:43:28 -08:00
17b433b01c
added random points with minimum distance between them 2024-02-09 02:12:17 -08:00
67c7962634
remove src/dist-newstyle (added by mistake) 2024-02-05 03:00:01 -08:00
5c981917bd
photo filter now uses voroni diagram
There's still a couple bugs, some of the shapes are kinda long and
pointy. In the meantime, shapes are placed on the board longest
perimeter first to cover it up.

Also, there's still some gaps occasionally.
2024-02-04 03:34:12 -08:00
dd9bb2c88a
swapping to voroni diagram 2024-01-19 02:31:19 -08:00
8723e7c81b fixed the corners, swapped to cairo 2023-02-08 23:19:52 -08:00
3ceb4e9961 cleanup + parralellism, not working yet 2023-02-03 17:22:41 -08:00
b75efc1161 Faster now, allowing a greater number of corners 2023-02-03 15:43:46 -08:00
e61aeea607 slightly faster & now with a cli 2023-02-02 22:15:42 -08:00
bcdb0ccead new method which makes a planar graph between random points 2023-02-01 16:17:38 -08:00
6045708f49 prior using diagrams's vectors and points throughout 2023-01-22 11:57:07 -08:00
Jack Wines
bcaf9d58a4 better pinning of nixpkgs 2019-02-16 14:04:24 -05:00
Jack Wines
91f0b28d7b it got stupid fast 2018-12-24 22:48:45 -05:00
Jack Wines
221a43e835 change raster method, add todo to readme 2018-12-20 00:38:06 -05:00
Jack Wines
ceb03f8e98 parallelism 2018-12-18 01:32:49 -05:00
Jack Wines
345fcdfac1 swap to nix and working version with multiple faded triangles 2018-12-17 14:25:59 -05:00
Jack Wines
798d642d66 fixed conflict 2018-11-25 22:26:23 -05:00
Jack Wines
76a66c1bdc beginning of diagrams portion 2018-11-25 22:22:23 -05:00
Brett Wines
2626e47712 getRandomPixel 2018-11-25 22:16:37 -05:00
Brett Wines
d4eb59a3c2 Update cabal file 2018-11-25 21:36:45 -05:00
Jack Wines
70da3abca3 fixed stack 2018-11-25 21:24:19 -05:00
Jack Wines
0bd8a31252 setup stack 2018-11-25 21:17:26 -05:00