Commit graph

31 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
d07628f184
run nix fmt 2024-04-19 15:16:50 -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
125762ea59
formatting 2024-02-12 14:08:08 -08:00
3ed81da25a
minimum distance sampling
https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf

That paper provided a wonderful way to do minimum distance sampling.
2024-02-12 12:11:01 -08:00
8d9a69c24b
cleanup 2024-02-09 02:11:08 -08:00
a258661f7c
remove never-used source files (CircumCircle & Render) 2024-02-05 02:00:47 -08:00
e52a6ae640
formatting and dead code elimination in Triangles.hs 2024-02-04 04:11:11 -08:00
801b616f91
add & apply fourmolu and dead code removal 2024-02-04 04:08:31 -08:00
37bfefdc69
avoid lines that share the same endpoints, but in reverse order 2024-02-04 04:04:46 -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
d2ccaf0e8a cleanup 2023-02-03 19:34:57 -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
febf06f27c "pinned the nix config" 2019-01-21 21:10:06 -05:00
Jack Wines
059042a354 we can now dictate area and opacity as a fn of nth triangle generated 2019-01-05 01:13:31 -05:00
Jack Wines
329bf273a5 nicer randomness 2018-12-27 23:02:23 -05:00
Jack Wines
414bdfd5c6 getRandomTriangle now takes a maybe double between 0,1 for area 2018-12-27 22:55:36 -05:00
Jack Wines
91f0b28d7b it got stupid fast 2018-12-24 22:48:45 -05:00
Jack Wines
bbedc05264 fixed infinite loop on shared Y coordinates 2018-12-24 01:02:00 -05:00
Jack Wines
9eab0f700f works! infinite loops sometimes though 2018-12-23 04:26:03 -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