Giter Site home page Giter Site logo

plotterfun's People

Contributors

cfretter avatar gamerboy80 avatar homineludens avatar j-waal avatar liamolucko avatar markjb avatar mitxela avatar msurguy avatar tkoop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plotterfun's Issues

Add a licence

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.

[Feature request] Connect squiggle ends

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.

image

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.

Bug in luma()

return pixData.data[i]*0.299 + pixData.data[i+1]*0.587 + pixData.data[i]*0.114 // ITU-R 601-2

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.

Linedraw algorithm can't get the result

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.

Original image:
test

linedraw.py output:
20211203141457

How to get controls to work?

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

Color mode

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...)
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.