mitxela / plotterfun Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This is a really cool project and since it's JS based I could see myself using one of the algorithms on a client website, a simple MIT licence should suffice.
Hello. I tried more than that on 4000*2000 image and this didn't work for some reason.
It's great to have these tools as a single useful web app. For squiggle plots, one useful feature that's missing is to 'connect ends' of each line, so the plotter has a continuous squiggle line that alternates between each endpoint, e.g.
The result is fewer pen lifts for each plot.
Here is the full svg that shows it, to open it, rename the file extension from 'zip' to 'svg'
mao_2121128.zip
You can find the connect ends switch implemented in the original Squiggledraw source.
The function is named 'connectEnds'
What are the odds of getting it implemented into plotterfun?
Maybe I could try and make a pull request for this but my java is rusty.
Line 54 in 97ed6f1
Reading through this code to be able to implement a new algorithm. I noticed the third element in the addition doesn't add 2 to the index.
It would be useful to copy the generated SVG to the clipboard instead of saving it, because pasting the SVG into the target program is much quicker...
This could be useful: https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
Hi, this is a great work that I like so much! Thanks for your work.
The problem is I have a bright image(a photo captured by camera and I adjust it to a very bright version, see attachment) input into the Lindraw algorithm, but get blank result.
I have tried original linedraw.py, it works fine. I attach the image file and the output of linedraw.py, please take a look.
Tuning the parameters makes no help.
Certain settings in the halftone tool create arcs of zero radius, leading to parsing errors in other svg tools.
ex. a 0.000 0.000 0 1 0 0.001 0Z
I've been tinkering with a new algorithm. I don't code much any more, so it's taken longer than it should have! It's still a bit of a work in progress.
Thing is, I can't get the controls to have an initial value. It seems to be the value property but mine always have a value of 1. Any ideas?
postMessage(['sliders', defaultControls.concat([
{label: 'Tile size', value: 60, min: 6, max: 100},
{label: 'Lines', value: 6, min: 2, max: 50, step: 2},
{label: 'Sublines', value: 3, min: 1, max: 10}
,{label: 'Amplitude', value: 0.1, min: 0.1, max: 5, step: 0.1}
,{label: 'Sampling', value: 5, min: 2, max: 10, step: 0.1}
])]);
My repo is adding a Truchet Tile algorithm:
https://github.com/graza/plotterfun
Your tool is so cool!!!
I made a color version but didn't test the result with my plotter up to now - https://grbl-plotter.de/plotterfun-color
Also drag & drop of an images on to the canvas is possible
To do: I can't change the order of the colors (the lightest color first would be nice), output scaled to given mm (somehow a factor of 3.78 is applied...)
I would wish that I could directly open images from a URL, and that, if plotterfun is recalculating, the popup wouldn't shift the whole layout when recalculating.
I am using Firefox 85.0.1 64-bit on Ubuntu 20.04.1 LTS.
I don't really get why they're text inputs and not number inputs
Cricut Design Space refuses to import SVG-s if the image is bigger than the canvas. It's not a big deal to scale it down in Inkscape, but it's still an extra step.
Very nice collection!
Perhaps you could add this algorithm: https://github.com/LingDong-/linedraw
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.