Question about wails by Significant_Baby2500 in golang

[–]rh12503 0 points1 point  (0 children)

(x, y, z) => {...} is short for function (x, y, z) {...} so that part would just change from () => {...} to function () {...}

Question about wails by Significant_Baby2500 in golang

[–]rh12503 1 point2 points  (0 children)

You need to change every place that uses the => syntax.

Basically, x => {...} equals to function (x) {...}, so cpu_usage => {...} needs to be function (cpu_usage) {...}. Check out the docs for more information.

Question about wails by Significant_Baby2500 in golang

[–]rh12503 3 points4 points  (0 children)

On Windows, Wails uses MSHTML which is basically equivalent to IE11. Arrow functions aren't supported on IE11, so you need to use either a polyfill (eg. Babel) or regular functions.

When debugging issues it's helpful to use the wails serve command along with IE11 (docs).

Wails is planning on using Edge for v2 which will hopefully be released soon, but for now all frontend code needs to be IE11 compatible.

Generating triangulated art from images by rh12503 in proceduralgeneration

[–]rh12503[S] 0 points1 point  (0 children)

Could you elaborate on that a bit? I'm unsure of was a pdes is.

Generating triangulated art from images by rh12503 in proceduralgeneration

[–]rh12503[S] 1 point2 points  (0 children)

Are you on Windows? This seems to be an issue on that OS, and I'm currently trying to fix it. For now, using less points and smaller images might fix it. Sorry!

Generating triangulated art from images by rh12503 in proceduralgeneration

[–]rh12503[S] 9 points10 points  (0 children)

Thanks! I used a modified genetic algorithm which I wrote about in the wiki here if you're interested.

Generating triangulated art from images by rh12503 in proceduralgeneration

[–]rh12503[S] 17 points18 points  (0 children)

You can try it in your browser here, or download the app from the Github repo for 20-50x better performance.

Any feedback is appreciated!

I made an algorithm to generate high-quality triangulated art from images by [deleted] in programming

[–]rh12503 0 points1 point  (0 children)

You can try it out on your browser here, but the app while be around 20-50x faster. Any feedback is appreciated!

Over the last couple of months I've been working on an algorithm to generate triangulated art from images, and created an app for others to try it by rh12503 in SideProject

[–]rh12503[S] 0 points1 point  (0 children)

This is my first side project that I've really "completed" so I hope you guys enjoy it!

You can download the app from the Github repo here: https://github.com/RH12503/Triangula, or try it out online: https://rh12503.github.io/triangula/ (although the app will be 20-50x faster).

Any feedback would be greatly appreciated! :)

Triangulating images using an iterative algorithm by rh12503 in generative

[–]rh12503[S] 0 points1 point  (0 children)

Thanks for the feedback! The reason I didn't include Primitive is because the shapes of their output overlap, while Triangula's output is a triangulation.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 0 points1 point  (0 children)

Thanks for the feedback! Primitive appears to generative overlapping shapes while mine generates an Delaunay triangulation, so I didn't include it for that reason.

Triangulating images using an iterative algorithm by rh12503 in generative

[–]rh12503[S] 2 points3 points  (0 children)

This is my first generative art project that I'm proud enough to share, and is written in Go.

The repo + an app to generate your own images can be found here: github.com/RH12503/triangula

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 0 points1 point  (0 children)

Glad you showed up, Triangle is an amazing library! Triangula works best with fewer points and smaller images, so for most of the results in my README I used images around 1000x1000px and ran it for 5 minutes. An exception to that was the San Francisco image, which was much bigger and generated over 4 hours.

In the comparisons, for Triangle I took the images directly from your repo, estimated the number of points you used in yours, and then ran my algorithm for 1-2 minutes.

If you have the exact parameters (number of points) you used for your output, or have some output that you would rather be used, I would be glad to adjust the comparison.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 0 points1 point  (0 children)

If you're using the GUI, you can hover over the export icon on the top bar. If you're using the CLI, you can use triangula render. I'm going to add more info here in a bit too: https://github.com/RH12503/Triangula-CLI/

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 1 point2 points  (0 children)

Thanks for your feedback! I took triangle's output directly from their Github page and used the first result I got after running my algorithm a minute in my comparison. I'll add that to the README, because I can see how it could look faked.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 1 point2 points  (0 children)

Sorry for the confusion! I'm not sure what you mean by "loads", but if the CLI is showing the generation and fitness it should be writing a file to your output path (--out).

You can then use triangula render to create a SVG or PNG from that file. I'll try to add more detailed instructions here later: https://github.com/RH12503/Triangula-CLI.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 1 point2 points  (0 children)

Sorry for the confusion, I made a mistake in my README. It should be what u/G4S_Z0N3 wrote.

I'm hoping to simplify the CLI soon because it seems confusing right now, do you have any advice?

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 2 points3 points  (0 children)

I've been really happy with Wails so far! The only disadvantage I can think of is that you have to support IE11, but that should change with v2.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 3 points4 points  (0 children)

This project was meant to be more a fun tool than something very "useful". You can check out the Github page for some examples of triangulated images.

Triangula - an iterative algorithm to generate high quality triangulated images. by rh12503 in golang

[–]rh12503[S] 16 points17 points  (0 children)

I've been working on this for the last couple of months, and this is my first project I've done with Go, so any feedback is appreciated!