rh12503 / triangula Goto Github PK
View Code? Open in Web Editor NEWGenerate high-quality triangulated and polygonal art from images.
License: MIT License
Generate high-quality triangulated and polygonal art from images.
License: MIT License
On my weak machine, the GUI application uses a lot of resources, works out of control and unstoppable. Even I can't save the generated result.
Would you like to add a settings about "max generation in one turn" to limit generating in one click on "Start"? If the generation match max value, it will automatically pause and waits for next "Start".
Hi, i downloaded the newest release (1.1.2) from the releasepage, ran chmod +x
on the unzipped file and started the application.
A window titled "Triangula" pops up, but it's completely blank:
Console reads:
╰─$ ./Triangula
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
Control
Enviroment:
Linux P1 5.11.15-200.fc33.x86_64 #1 SMP Fri Apr 16 13:41:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
This project is amazing. Thank you for building and uploading it. The outputs are remarkable and it makes computers seem like magic to me again.
It appears Triangula is somewhat biased to render / use triangle budget on the left side of images. Parts of an image further to the left seem to resolve to better detail. Not sure if it works better to allow images to process far longer, but it seems to stop making a difference after a while.
I don't know if this is either known, an actual issue, or helpful to you. Again, thanks for building something so cool and even... inspiring.
Target Photo: https://en.wikipedia.org/wiki/USS_America_(CV-66)#/media/File:USS_America_(CV-66)_underway_in_the_Indian_Ocean_on_24_April_1983.jpg
Dimensions: 2586 x 1769
Size: 2.11 MB
Filetype: .PNG (I converted it PNG before using)
Default Settings, 1,000 Points
Default Settings, 2,000 Points
Target Photo: https://en.wikipedia.org/wiki/Mount_Rushmore#/media/File:Mount_Rushmore_detail_view_(100MP).jpg
Dimensions: 1588 x 1080
Size: 655 KB
Filetype: .jpg
Default Settings, 1,000 Points
Default Settings, 2,000 Points
See the figure's detail on the far left (George Washington) vs the figure on the far right (Abraham Lincoln)
Hi,
i love your programm but I have a small suggestion for improvment :-)
When I want to load a new image using the GUI I can't select image files if the file suffix is in capital letters like image.JPG . I have to manually rename the file to image.jpg first. Maybe this can be fixed so that files ending with .JPG, .JPEG and .PNG can be selected too. Some Cameras and Smartphones save their images using suffixes like .JPG for some reason.
Best regards,
Marco
I would like to request dark mode support for the gui. That way I won't burn my eyes whenever I use it. Thanks!
If you set "Time per Frame" to 10 or 25 and start with triangulation you are not able to stop it with the "Stop" button, because it does not react. When "Time per Frame" is set to 250 the "Stop" button works as intended.
This example from the docs not working:
triangula render -in <path to outputted JSON> -out <path to output SVG>
Using the CLI version, it appears that the -r
and --reps
options are ignored, as well as the claimed default of 500 reps, since no matter whether I supply the options or not, the algorithm still proceeds beyond the supplied number and continues until killed with CTRL+C.
I am doing this:
IN=schach.jpg
JSON=fitness
SVG=schach
triangula run -img "${IN}" -out "${JSON}"
triangula render -in "${JSON}.json" -img "${IN}" -out "${SVG}"
It is a bit weird to me that "-out" on run is adding a .json file extension even if I put in "fitness.json" already. A fallback for adding the extension is nice, but imho it should check if it is supplied already (strings.HasSuffix). That way I could use $JSON for both commands in the above example.
Interesting
This is a bit simular to this --> https://codepen.io/hex2bin/full/ExjEPvK
I have used a local optimiser to accomplish my goal.
This one uses delaunay for the startup only.
When I make a run within the GUI MOST of the times the application is unstoppable.
I had downloaded v1.1.2, but it's not able to run on Windows 10 (Version 20H2), would like to understand is there any tutorial for installtion?
Hi there,
I saw your project mentioned on the Golang sub on Reddit. I knew about Wails already, but it never occurred to me that it produces such small and efficient binaries (when compared to Electron apps). I downloaded and played with your app. Great work!
The reason I am writing this issue is because I have recently written and self-published a book about generative art in Go (https://preslav.me/generative-art-in-golang/). I thought it would be a great idea if we refer to each other's projects. There is a section in my book that I am planning to expand upon, where I refer to other nice Go projects from the same domain. I suppose, I can put yours there in a future update. You could do the same, either as part of the README or in the Wiki.
How does that sound? Feel free to close the issue once you've read it.
Cheers,
Preslav
Hi! I'd like to try your application but could not installed it locally on Fedora 38:
$ go install github.com/rh12503/triangula-cli/triangula@latest
go: github.com/rh12503/triangula-cli/triangula@latest: github.com/rh12503/[email protected]: parsing go.mod:
module declares its path as: github.com/RH12503/Triangula-CLI
but was required as: github.com/rh12503/triangula-cli
I hope fixing the capitalization fixes this issue. Also, if it works, it'd be nice to adjust the README.md
to use "install" instead of "get".
Cheers,
Maximilian.
it would be possible to use overlapping triangles with gradient to get different results
Hi maintainers, the image of Ken Thompson that you are using cannot be included in this project under an MIT license as the underlying image is licensed under CC-BY-NC-SA. Please note that in your license docs along with proper attribution or remove it. Thanks.
I have a white screen on startup
Triangula version: 1.1.2
OS: Manjaro (KDE Plasma)
Stdout:
(Triangula:45221): Gtk-WARNING **: 16:44:14.988: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal
Control
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.065: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.097: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.097: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.097: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.097: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
(WebKitWebProcess:45235): Gtk-WARNING **: 16:44:15.097: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version
How to fix this?
Hi, I cloned this repo and ran go build and got this error:
no Go files in C:\Users\milo5\Desktop\GitHub\triangula
Any ideas on how I can build from source?
My antivirus doesn't let me download the gui so I'm trying to self build it. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.